diff --git a/src/index.tsx b/src/index.tsx index 033e48092..b88990c40 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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 }; diff --git a/src/locale/en.ts b/src/locale/en.ts index 038e13761..929c39b6a 100644 --- a/src/locale/en.ts +++ b/src/locale/en.ts @@ -202,5 +202,7 @@ register('en', { '上一步': 'Prev', '下一步': 'Next', '保存并下一步': 'Save & Next', - '完成': 'Finish' + '完成': 'Finish', + '点击选择图片或者将图片拖入该区域': + 'Click to select the picture or drag the picture into the area' });