插件
@tc-i18n
设计了插件机制,用于扩展其能力,可自行开发插件解决不直接支持的功能,详见插件设计
插件使用
安装好插件后,在 tci18n.config.json 中配置即可。
json
// tci18n.config.json
{
...
"plugins": [
"@tc-i18n/plugin-vm-to-template",
]
}
如需传入自定义参数,则改为数组写法,第一个参数为 插件名称,第二个参数为 插件参数。
json
// tci18n.config.json
{
...
"plugins": [
[
"@tc-i18n/plugin-vm-to-template",
{
// 参数配置
...
}
],
]
}
@tc-i18n/plugin-vm-to-template
可以将 .vm
文件按照 .vue
文件进行解析。