i18n-server

1.0.4 • Public • Published

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

Dependencies (17)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i i18n-server

    Weekly Downloads

    2

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    31.4 kB

    Total Files

    12

    Last publish

    Collaborators

    • blueni