easy-i18n-cli
v1.2.4
Published
easy-i18n-cli
Downloads
36
Readme
easy-i18n-cli
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
|xudafeng|snapre|ilimei| | :---: | :---: | :---: |
This project follows the git-contributor spec, auto updated at Wed Feb 01 2023 17:48:43 GMT+0800
.
License
The MIT License (MIT)