amis/packages/amis-theme-editor-helper/i18nConfig.js
qkiroc 8bcf7b4dd5
chore: 更新theme-editor依赖 (#9132)
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
2023-12-14 14:29:50 +08:00

39 lines
610 B
JavaScript

module.exports = {
entry: {
dir: './src'
},
file: {
test: /.*(ts|tsx|js|jsx)$/
},
includes: ['src/renderers'],
ignore: {
list: ['src/*']
},
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: 'theme-editor-i18n',
fileExtension: 'xlsx',
path: './'
},
translate: {
appId: '',
key: '',
host: 'http://api.fanyi.baidu.com'
}
};