amis2/packages/amis-editor-core/i18nConfig.js
qkiroc 9af60f1820 amis-saas-7517 主题国际化
Change-Id: Ia339c54ab19916b2fc90b7e9905efb17c543e06b
2022-10-21 23:53:08 +08:00

38 lines
620 B
JavaScript

module.exports = {
entry: {
dir: './src'
},
file: {
test: /.*(ts|tsx|js|jsx)$/
},
ignore: {
list: ['src/locale']
},
importInfo: {
source: 'i18n-runtime',
imported: 'i18n',
local: '_i18n'
},
i18nModule: 'i18n-runtime',
languages: [
{
name: 'en-US',
path: './src/locale'
},
{
name: 'zh-CN',
path: './src/locale'
}
],
output: {
fileName: 'eidtor-core-i18n',
fileExtension: 'xlsx',
path: './'
},
translate: {
appId: '20220902001329332',
key: 'pVS96QbIzVROBSOarU4R',
host: 'http://api.fanyi.baidu.com'
}
};