{"id":27450849,"url":"https://github.com/node-modules/easy-i18n-cli","last_synced_at":"2025-07-18T08:04:35.651Z","repository":{"id":63851708,"uuid":"569998445","full_name":"node-modules/easy-i18n-cli","owner":"node-modules","description":"面向中文用户的 i18n 工具","archived":false,"fork":false,"pushed_at":"2025-06-03T12:08:40.000Z","size":46,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-14T15:36:26.077Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-modules.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-11-24T05:17:07.000Z","updated_at":"2025-06-19T12:00:37.000Z","dependencies_parsed_at":"2025-04-01T07:15:22.085Z","dependency_job_id":"e44d885c-3062-485b-aa5c-bbf61e290839","html_url":"https://github.com/node-modules/easy-i18n-cli","commit_stats":{"total_commits":27,"total_committers":3,"mean_commits":9.0,"dds":"0.14814814814814814","last_synced_commit":"4df9c9d743b4534d7c093628d74af41254d11bb7"},"previous_names":["xudafeng/easy-i18n-cli2","node-modules/easy-i18n-cli","xudafeng/easy-i18n-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/node-modules/easy-i18n-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Feasy-i18n-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Feasy-i18n-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Feasy-i18n-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Feasy-i18n-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-modules","download_url":"https://codeload.github.com/node-modules/easy-i18n-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Feasy-i18n-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265724586,"owners_count":23817829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-15T09:35:07.316Z","updated_at":"2025-07-18T08:04:35.632Z","avatar_url":"https://github.com/node-modules.png","language":"JavaScript","readme":"# easy-i18n-cli\n\n[![NPM version][npm-image]][npm-url]\n[![CI][ci-image]][ci-url]\n[![node version][node-image]][node-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/easy-i18n-cli.svg\n[npm-url]: https://npmjs.org/package/easy-i18n-cli\n[ci-image]: https://github.com/node-modules/easy-i18n-cli/actions/workflows/ci.yml/badge.svg\n[ci-url]: https://github.com/node-modules/easy-i18n-cli/actions/workflows/ci.yml\n[node-image]: https://img.shields.io/badge/node.js-%3E=_8-green.svg\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/easy-i18n-cli.svg\n[download-url]: https://npmjs.org/package/easy-i18n-cli\n\n\u003e i18n cli\n\n## Installment\n\n```bash\n$ npm i easy-i18n-cli --save-dev\n```\n\n## Configuraion\n\n```javascript\n// i18n.config.js\nmodule.exports = {\n  srcDirs: [\n    'test/fixtures/**/*.*',\n  ],\n  distDir: __dirname,\n  tokenName: '__i18n',\n};\n```\n\n```\n...\n  \"translate\": \"easy-i18n-cli -c ./i18n.config.js\",\n  \"translate:check\": \"npm run translate -- --check\",\n...\n```\n## Use web modules\n\n```javascript\nimport locale from 'easy-i18n-cli/src/locale';\nimport enObj from './en-US';\n\nexport const __i18n = locale({\n  en: enObj,\n  useEn: () =\u003e true,\n});\n```\n\n## Use APIS\n\n```bash\n$ ./bin/easy-i18n-cli.js -c ./google-translate.config.js\n```\n\n\u003c!-- GITCONTRIBUTOR_START --\u003e\n\n## Contributors\n\n|[\u003cimg src=\"https://avatars.githubusercontent.com/u/1011681?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003exudafeng\u003c/b\u003e\u003c/sub\u003e](https://github.com/xudafeng)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/52845048?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003esnapre\u003c/b\u003e\u003c/sub\u003e](https://github.com/snapre)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/61226209?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003eyangkeni\u003c/b\u003e\u003c/sub\u003e](https://github.com/yangkeni)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/11213298?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003eWynterDing\u003c/b\u003e\u003c/sub\u003e](https://github.com/WynterDing)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/12947068?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003eilimei\u003c/b\u003e\u003c/sub\u003e](https://github.com/ilimei)\u003cbr/\u003e|\n| :---: | :---: | :---: | :---: | :---: |\n\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Mon Apr 07 2025 21:05:31 GMT+0800`.\n\n\u003c!-- GITCONTRIBUTOR_END --\u003e\n\n## License\n\nThe MIT License (MIT)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-modules%2Feasy-i18n-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-modules%2Feasy-i18n-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-modules%2Feasy-i18n-cli/lists"}