diff --git a/packages/amis-editor/i18nConfig.js b/packages/amis-editor/i18nConfig.js index c1bce6937..782269173 100644 --- a/packages/amis-editor/i18nConfig.js +++ b/packages/amis-editor/i18nConfig.js @@ -6,25 +6,25 @@ module.exports = { test: /.*(ts|tsx|js|jsx)$/ }, ignore: { - list: ['src/icons', 'src/local'] + list: ['src/icons', 'src/locale'] }, importInfo: { source: 'i18n-runtime', imported: 'i18n', local: '_i18n' }, - i18nModule: 'amis-core', + i18nModule: 'i18n-runtime', languages: [ { name: 'en-US', - path: './src/local' + path: './src/locale' }, { name: 'zh-CN', - path: './src/local' + path: './src/locale' } ], - init: { + output: { fileName: 'editor-i18n', fileExtension: 'xlsx', path: './' diff --git a/packages/amis-editor/src/index.tsx b/packages/amis-editor/src/index.tsx index d05dd5582..82fde2529 100644 --- a/packages/amis-editor/src/index.tsx +++ b/packages/amis-editor/src/index.tsx @@ -1,5 +1,5 @@ import 'amis'; -import './local/index'; +import './locale/index'; export * from 'amis-editor-core'; import './tpl/index'; diff --git a/packages/amis-editor/src/local/en-US.ts b/packages/amis-editor/src/locale/en-US.ts similarity index 100% rename from packages/amis-editor/src/local/en-US.ts rename to packages/amis-editor/src/locale/en-US.ts diff --git a/packages/amis-editor/src/local/index.ts b/packages/amis-editor/src/locale/index.ts similarity index 100% rename from packages/amis-editor/src/local/index.ts rename to packages/amis-editor/src/locale/index.ts diff --git a/packages/amis-editor/src/local/zh-CN.ts b/packages/amis-editor/src/locale/zh-CN.ts similarity index 100% rename from packages/amis-editor/src/local/zh-CN.ts rename to packages/amis-editor/src/locale/zh-CN.ts