# easy-i18n-cli
**Repository Path**: mirrors_node-modules/easy-i18n-cli
## Basic Information
- **Project Name**: easy-i18n-cli
- **Description**: 面向中文用户的 i18n 工具
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-04-01
- **Last Updated**: 2025-08-24
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# easy-i18n-cli
[![NPM version][npm-image]][npm-url]
[![CI][ci-image]][ci-url]
[![node version][node-image]][node-url]
[![npm download][download-image]][download-url]
[npm-image]: https://img.shields.io/npm/v/easy-i18n-cli.svg
[npm-url]: https://npmjs.org/package/easy-i18n-cli
[ci-image]: https://github.com/node-modules/easy-i18n-cli/actions/workflows/ci.yml/badge.svg
[ci-url]: https://github.com/node-modules/easy-i18n-cli/actions/workflows/ci.yml
[node-image]: https://img.shields.io/badge/node.js-%3E=_8-green.svg
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/easy-i18n-cli.svg
[download-url]: https://npmjs.org/package/easy-i18n-cli
> i18n cli
## Installment
```bash
$ npm i easy-i18n-cli --save-dev
```
## Configuraion
```javascript
// 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
```javascript
import locale from 'easy-i18n-cli/src/locale';
import enObj from './en-US';
export const __i18n = locale({
en: enObj,
useEn: () => true,
});
```
## Use APIS
```bash
$ ./bin/easy-i18n-cli.js -c ./google-translate.config.js
```
## Contributors
|[
xudafeng](https://github.com/xudafeng)
|[
snapre](https://github.com/snapre)
|[
yangkeni](https://github.com/yangkeni)
|[
WynterDing](https://github.com/WynterDing)
|[
ilimei](https://github.com/ilimei)
|
| :---: | :---: | :---: | :---: | :---: |
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Mon Apr 07 2025 21:05:31 GMT+0800`.
## License
The MIT License (MIT)