1.0.4 • Published 5 years ago

i18n-server v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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文件忽略掉非语言包文件。