amis/packages/amis-editor-core/i18nConfig.js
qkiroc 9104b26351 调整i18n配置
Change-Id: I71f51f1cd0878a4cbc3198fd4b0b810388b559e6
2022-08-25 11:27:54 +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: '20220810001301703',
key: 'WW7jKaJJBrtCawTOkCpk',
host: 'http://api.fanyi.baidu.com'
}
};