UNPKG
webpack-i18n-plugin-plus
Version:
latest (2.0.5)
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.0
webpack国际化插件-升级版,支持script中的中文识别,支持自动翻译
webpack-i18n-plugin-plus
/
src
/
babel-plugin
/
options.js
11 lines
(9 loc)
•
391 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// babel插件的配置信息
let OPTIONS = {
$i8n
:
"
$i8n
"
,
// 排除不需要国际化配置的调用方法
excludedCall: [
"
$i8n
"
,
"require"
,
"$
$i8n
"
,
"console.log"
,
"
$t
"
,
"_vm.
$t
"
,
"_vm.$
$i8n
"
,
"_vm.
$i8n
"
],
// $$i8n('key','value') 标记不翻译字符
// 排除不需要配置的字符串,
excludedPattern: /\.\w+$/,
// 默认文件名
}; module.exports = OPTIONS;