1.2.4 • Published 2 years ago

easy-i18n-cli v1.2.4

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

easy-i18n-cli

NPM version CI Test coverage node version npm download

i18n cli

Installment

$ npm i easy-i18n-cli --save-dev

Configuraion

// i18n.config.js
module.exports = {
  srcDirs: [
    'test/fixtures/**/*.*',
  ],
  distDir: __dirname,
  tokenName: '__i18n',
};
...
  "translate": "easy-i18n-cli -c ./i18n.config.js",
  "translate:check": "npm run translate -- --check",
...

Use web modules

import locale from 'easy-i18n-cli/src/locale';
import enObj from './en-US';

export const __i18n = locale({
  en: enObj,
  useEn: () => true,
});

Use APIS

$ ./bin/easy-i18n-cli.js -c ./google-translate.config.js

Contributors

xudafengsnapreilimei

This project follows the git-contributor spec, auto updated at Wed Feb 01 2023 17:48:43 GMT+0800.

License

The MIT License (MIT)

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

0.0.1-security.0

2 years ago

0.0.1-security.1

2 years ago

0.0.1-security.4

2 years ago

0.0.1-security.5

2 years ago

0.0.1-security.2

2 years ago

0.0.1-security.3

2 years ago

1.2.1

2 years ago

0.0.1-security

2 years ago

0.0.1-security.8

2 years ago

0.0.1-security.9

2 years ago

0.0.1-security.6

2 years ago

0.0.1-security.7

2 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago