i18n-server
v1.0.4
Published
i18n翻译工具
Downloads
18
Readme
i18n-server
使用快速便捷的方式增加语言翻译包
使用方式
npm install i18n-server -g
cd [你的语言包目录]
i18n [open | start]
生产环境启动i18n服务,是否自动打开浏览器i18n [dev | devopen | devstart]
开发环境启动i18n服务,是否自动打开浏览器
支持语言包格式
暂时只支持js文件,格式如下:
module.exports = {
CN: {
foo: '中文',
bar: '你好',
},
EN: {
foo: 'Chinese',
bar: 'hello'
}
}
可在语言包文件夹下添加.i18n-ignore
文件忽略掉非语言包文件。