From 238dca8947f1a4227072858924a142a670d81493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Sun, 26 May 2019 13:11:13 +0800 Subject: [PATCH] add locales --- EditorFlow/src/index.tsx | 8 +++++++- EditorFlow/src/locales/en-US.ts | 4 ++++ EditorFlow/src/locales/zh-CN.ts | 3 +++ EditorKoni/src/index.tsx | 8 +++++++- EditorKoni/src/locales/en-US.ts | 4 ++++ EditorKoni/src/locales/zh-CN.ts | 3 +++ EditorMind/src/index.tsx | 8 +++++++- EditorMind/src/locales/en-US.ts | 4 ++++ EditorMind/src/locales/zh-CN.ts | 4 ++++ 9 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 EditorFlow/src/locales/en-US.ts create mode 100644 EditorFlow/src/locales/zh-CN.ts create mode 100644 EditorKoni/src/locales/en-US.ts create mode 100644 EditorKoni/src/locales/zh-CN.ts create mode 100644 EditorMind/src/locales/en-US.ts create mode 100644 EditorMind/src/locales/zh-CN.ts diff --git a/EditorFlow/src/index.tsx b/EditorFlow/src/index.tsx index d8aa2f02..29ca776c 100644 --- a/EditorFlow/src/index.tsx +++ b/EditorFlow/src/index.tsx @@ -8,12 +8,18 @@ import { FlowItemPanel } from './components/EditorItemPanel'; import { FlowDetailPanel } from './components/EditorDetailPanel'; import styles from './index.less'; import PageHeaderWrapper from './components/PageHeaderWrapper'; +import { formatMessage } from 'umi-plugin-react/locale'; GGEditor.setTrackable(false); export default () => { return ( - + diff --git a/EditorFlow/src/locales/en-US.ts b/EditorFlow/src/locales/en-US.ts new file mode 100644 index 00000000..cd6e46fd --- /dev/null +++ b/EditorFlow/src/locales/en-US.ts @@ -0,0 +1,4 @@ +export default { + 'BLOCK_NAME.description': + 'The flow chart is an excellent way to represent the idea of the algorithm', +}; diff --git a/EditorFlow/src/locales/zh-CN.ts b/EditorFlow/src/locales/zh-CN.ts new file mode 100644 index 00000000..b48bbf34 --- /dev/null +++ b/EditorFlow/src/locales/zh-CN.ts @@ -0,0 +1,3 @@ +export default { + 'BLOCK_NAME.description': '千言万语不如一张图,流程图是表示算法思路的好方法', +}; diff --git a/EditorKoni/src/index.tsx b/EditorKoni/src/index.tsx index 8bb77d4a..09390c5e 100644 --- a/EditorKoni/src/index.tsx +++ b/EditorKoni/src/index.tsx @@ -8,12 +8,18 @@ import { KoniItemPanel } from './components/EditorItemPanel'; import { KoniDetailPanel } from './components/EditorDetailPanel'; import styles from './index.less'; import PageHeaderWrapper from './components/PageHeaderWrapper'; +import { formatMessage } from 'umi-plugin-react/locale'; GGEditor.setTrackable(false); export default () => { return ( - + diff --git a/EditorKoni/src/locales/en-US.ts b/EditorKoni/src/locales/en-US.ts new file mode 100644 index 00000000..bd36a33d --- /dev/null +++ b/EditorKoni/src/locales/en-US.ts @@ -0,0 +1,4 @@ +export default { + 'BLOCK_NAME.description': + 'The topology diagram refers to the network structure diagram composed of network node devices and communication media', +}; diff --git a/EditorKoni/src/locales/zh-CN.ts b/EditorKoni/src/locales/zh-CN.ts new file mode 100644 index 00000000..da471523 --- /dev/null +++ b/EditorKoni/src/locales/zh-CN.ts @@ -0,0 +1,3 @@ +export default { + 'BLOCK_NAME.description': '拓扑结构图是指由网络节点设备和通信介质构成的网络结构图', +}; diff --git a/EditorMind/src/index.tsx b/EditorMind/src/index.tsx index 95624309..ef085858 100644 --- a/EditorMind/src/index.tsx +++ b/EditorMind/src/index.tsx @@ -8,12 +8,18 @@ import { MindDetailPanel } from './components/EditorDetailPanel'; import data from './worldCup2018.json'; import styles from './index.less'; import PageHeaderWrapper from './components/PageHeaderWrapper'; +import { formatMessage } from 'umi-plugin-react/locale'; GGEditor.setTrackable(false); export default () => { return ( - + diff --git a/EditorMind/src/locales/en-US.ts b/EditorMind/src/locales/en-US.ts new file mode 100644 index 00000000..847614c3 --- /dev/null +++ b/EditorMind/src/locales/en-US.ts @@ -0,0 +1,4 @@ +export default { + 'BLOCK_NAME.description': + 'The brain map is an effective graphical thinking tool for expressing divergent thinking. It is simple but effective and is a practical thinking tool', +}; diff --git a/EditorMind/src/locales/zh-CN.ts b/EditorMind/src/locales/zh-CN.ts new file mode 100644 index 00000000..7c5cc2ba --- /dev/null +++ b/EditorMind/src/locales/zh-CN.ts @@ -0,0 +1,4 @@ +export default { + 'BLOCK_NAME.description': + '脑图是表达发散性思维的有效图形思维工具 ,它简单却又很有效,是一种实用性的思维工具', +}; -- GitLab