Commit 238dca89 authored by 陈帅's avatar 陈帅

add locales

parent 1679373a
...@@ -8,12 +8,18 @@ import { FlowItemPanel } from './components/EditorItemPanel'; ...@@ -8,12 +8,18 @@ import { FlowItemPanel } from './components/EditorItemPanel';
import { FlowDetailPanel } from './components/EditorDetailPanel'; import { FlowDetailPanel } from './components/EditorDetailPanel';
import styles from './index.less'; import styles from './index.less';
import PageHeaderWrapper from './components/PageHeaderWrapper'; import PageHeaderWrapper from './components/PageHeaderWrapper';
import { formatMessage } from 'umi-plugin-react/locale';
GGEditor.setTrackable(false); GGEditor.setTrackable(false);
export default () => { export default () => {
return ( return (
<PageHeaderWrapper content="The flow chart is an excellent way to represent the idea of the algorithm."> <PageHeaderWrapper
content={formatMessage({
id: 'BLOCK_NAME.description',
defaultMessage: 'description',
})}
>
<GGEditor className={styles.editor}> <GGEditor className={styles.editor}>
<Row type="flex" className={styles.editorHd}> <Row type="flex" className={styles.editorHd}>
<Col span={24}> <Col span={24}>
......
export default {
'BLOCK_NAME.description':
'The flow chart is an excellent way to represent the idea of the algorithm',
};
export default {
'BLOCK_NAME.description': '千言万语不如一张图,流程图是表示算法思路的好方法',
};
...@@ -8,12 +8,18 @@ import { KoniItemPanel } from './components/EditorItemPanel'; ...@@ -8,12 +8,18 @@ import { KoniItemPanel } from './components/EditorItemPanel';
import { KoniDetailPanel } from './components/EditorDetailPanel'; import { KoniDetailPanel } from './components/EditorDetailPanel';
import styles from './index.less'; import styles from './index.less';
import PageHeaderWrapper from './components/PageHeaderWrapper'; import PageHeaderWrapper from './components/PageHeaderWrapper';
import { formatMessage } from 'umi-plugin-react/locale';
GGEditor.setTrackable(false); GGEditor.setTrackable(false);
export default () => { export default () => {
return ( return (
<PageHeaderWrapper content="The topology diagram refers to the network structure diagram composed of network node devices and communication media."> <PageHeaderWrapper
content={formatMessage({
id: 'BLOCK_NAME.description',
defaultMessage: 'description',
})}
>
<GGEditor className={styles.editor}> <GGEditor className={styles.editor}>
<Row type="flex" className={styles.editorHd}> <Row type="flex" className={styles.editorHd}>
<Col span={24}> <Col span={24}>
......
export default {
'BLOCK_NAME.description':
'The topology diagram refers to the network structure diagram composed of network node devices and communication media',
};
export default {
'BLOCK_NAME.description': '拓扑结构图是指由网络节点设备和通信介质构成的网络结构图',
};
...@@ -8,12 +8,18 @@ import { MindDetailPanel } from './components/EditorDetailPanel'; ...@@ -8,12 +8,18 @@ import { MindDetailPanel } from './components/EditorDetailPanel';
import data from './worldCup2018.json'; import data from './worldCup2018.json';
import styles from './index.less'; import styles from './index.less';
import PageHeaderWrapper from './components/PageHeaderWrapper'; import PageHeaderWrapper from './components/PageHeaderWrapper';
import { formatMessage } from 'umi-plugin-react/locale';
GGEditor.setTrackable(false); GGEditor.setTrackable(false);
export default () => { export default () => {
return ( return (
<PageHeaderWrapper content="The brain map is an effective graphical thinking tool for expressing divergent thinking. It is simple but effective and is a practical thinking tool."> <PageHeaderWrapper
content={formatMessage({
id: 'BLOCK_NAME.description',
defaultMessage: 'description',
})}
>
<GGEditor className={styles.editor}> <GGEditor className={styles.editor}>
<Row type="flex" className={styles.editorHd}> <Row type="flex" className={styles.editorHd}>
<Col span={24}> <Col span={24}>
......
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',
};
export default {
'BLOCK_NAME.description':
'脑图是表达发散性思维的有效图形思维工具 ,它简单却又很有效,是一种实用性的思维工具',
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment