i18n cli
$ npm i easy-i18n-cli --save-dev// 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",
...
import locale from 'easy-i18n-cli/src/locale';
import enObj from './en-US';
export const __i18n = locale({
en: enObj,
useEn: () => true,
});$ ./bin/easy-i18n-cli.js -c ./google-translate.config.jsThis project has comprehensive test coverage with 100% code coverage across all metrics.
npm testnpm run test:coveragenpm run test:check-coverageFor detailed testing documentation, see TEST_DOCUMENTATION.md.
xudafeng |
snapre |
yangkeni |
WynterDing |
ilimei |
|---|
This project follows the git-contributor spec, auto updated at Mon Apr 07 2025 21:05:31 GMT+0800.
The MIT License (MIT)