feat: support i18n for more languages (#352)
authorwanganjuan <z798716565@Outlook.com>
Wed, 2 Mar 2022 08:02:47 +0000 (16:02 +0800)
committerGitHub <noreply@github.com>
Wed, 2 Mar 2022 08:02:47 +0000 (16:02 +0800)
commit2e107ceb04c1d705a9fce869f6e81224193626ba
treecccdf8a02f77987faadc36f333318d2a8298e724
parent8fa714ab2b9bf85efb7a21f541d9d129416aae18
feat: support i18n for more languages (#352)

* i18n for basic ui comment
* i18n for built-in text, such as confirmation, cancellation, etc
* fix style:  1) the menu is not centered  2) style of vertex/edge manipulation
* add additional json configuration and the replacement example
26 files changed:
hubble-fe/src/components/common/AppBar.less
hubble-fe/src/components/common/AppBar.tsx
hubble-fe/src/components/graph-management/GraphManagementList.tsx
hubble-fe/src/components/graph-management/metadata-configs/edge-type/EdgeTypeList.tsx
hubble-fe/src/components/graph-management/metadata-configs/edge-type/NewEdgeType.tsx
hubble-fe/src/components/graph-management/metadata-configs/graph-view/CheckAndEditVertex.tsx
hubble-fe/src/components/graph-management/metadata-configs/graph-view/CreateEdge.tsx
hubble-fe/src/components/graph-management/metadata-configs/graph-view/CreateVertex.tsx
hubble-fe/src/components/graph-management/metadata-configs/vertex-type/NewVertexType.tsx
hubble-fe/src/components/graph-management/metadata-configs/vertex-type/VertexTypeList.tsx
hubble-fe/src/i18n/index.ts
hubble-fe/src/i18n/resources/en-US/graph-managment/AsyncTasks.json [new file with mode: 0644]
hubble-fe/src/i18n/resources/en-US/graph-managment/GraphManagementSidebar.json [new file with mode: 0644]
hubble-fe/src/i18n/resources/en-US/graph-managment/addition.json [new file with mode: 0644]
hubble-fe/src/i18n/resources/en-US/graph-managment/common.json [new file with mode: 0644]
hubble-fe/src/i18n/resources/en-US/graph-managment/data-import/import-tasks/ImportTasks.json [new file with mode: 0644]
hubble-fe/src/i18n/resources/en-US/graph-managment/dataAnalyze.json [new file with mode: 0644]
hubble-fe/src/i18n/resources/en-US/graph-managment/index.ts [new file with mode: 0644]
hubble-fe/src/i18n/resources/en-US/index.ts [new file with mode: 0644]
hubble-fe/src/i18n/resources/index.ts
hubble-fe/src/i18n/resources/zh-CN/graph-managment/GraphManagementSidebar.json
hubble-fe/src/i18n/resources/zh-CN/graph-managment/addition.json [new file with mode: 0644]
hubble-fe/src/i18n/resources/zh-CN/graph-managment/index.ts
hubble-fe/src/i18n/resources/zh-CN/index.ts
hubble-fe/src/index.less
hubble-fe/src/index.tsx