整理多语言相关

This commit is contained in:
2betop 2020-06-08 12:29:19 +08:00
parent 5a968edab9
commit 1da33b9741
2 changed files with 15 additions and 2 deletions

View File

@ -27,6 +27,12 @@ import {resizeSensor} from './utils/resize-sensor';
import {setIconVendor} from './renderers/Form/IconPickerIcons';
import {Icon, registerIcon} from './components/icons';
import {RegisterStore} from './store';
import {
setDefaultLocale,
getDefaultLocale,
makeTranslator,
register as registerLocale
} from './locale';
// 注册渲染器
import './renderers/Action';
@ -203,5 +209,10 @@ export {
getTheme,
classPrefix,
getClassPrefix,
classnames
classnames,
// 多语言相关
getDefaultLocale,
setDefaultLocale,
registerLocale,
makeTranslator
};

View File

@ -202,5 +202,7 @@ register('en', {
'上一步': 'Prev',
'下一步': 'Next',
'保存并下一步': 'Save & Next',
'完成': 'Finish'
'完成': 'Finish',
'点击选择图片或者将图片拖入该区域':
'Click to select the picture or drag the picture into the area'
});