{"id":21880553,"url":"https://github.com/lukechannings/translate-json","last_synced_at":"2025-04-15T05:07:52.018Z","repository":{"id":37612313,"uuid":"82853280","full_name":"LukeChannings/translate-json","owner":"LukeChannings","description":"Tool to translate strings in a JSON document.","archived":false,"fork":false,"pushed_at":"2023-02-12T14:19:34.000Z","size":529,"stargazers_count":13,"open_issues_count":4,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T05:07:35.763Z","etag":null,"topics":["bing-translate","cli-utilities","google-translate","localization","translates-json","yandex-translate"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LukeChannings.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-02-22T21:15:28.000Z","updated_at":"2023-03-17T22:16:43.000Z","dependencies_parsed_at":"2024-11-28T09:14:29.527Z","dependency_job_id":"c0d643e5-2672-4102-b8b8-2c7d91aaab47","html_url":"https://github.com/LukeChannings/translate-json","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukeChannings%2Ftranslate-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukeChannings%2Ftranslate-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukeChannings%2Ftranslate-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukeChannings%2Ftranslate-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LukeChannings","download_url":"https://codeload.github.com/LukeChannings/translate-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249010198,"owners_count":21197796,"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":["bing-translate","cli-utilities","google-translate","localization","translates-json","yandex-translate"],"created_at":"2024-11-28T09:14:26.671Z","updated_at":"2025-04-15T05:07:51.975Z","avatar_url":"https://github.com/LukeChannings.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"translate-json\n=====\n\n\u003cdiv style=\"text-align: center\"\u003e\n\n[![npm version](https://badge.fury.io/js/translate-json.svg)](https://www.npmjs.com/package/translate-json)\n![Tests](https://github.com/LukeChannings/translate-json/workflows/Tests/badge.svg)\n[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\n\u003c/div\u003e\n\nTool to translate strings in a JSON document.\n\n## Install\n\n    npm i -g translate-json\n\n## Usage\n\n    Usage:\n      translate-json [options] -l \u003clanguage\u003e (- | \u003cinput\u003e) [\u003coutput\u003e]\n      translate-json [options] --lang=\u003clanguage\u003e (- | \u003cinput\u003e) [\u003coutput\u003e]\n\n    Options:\n      -t, --translator              The translation service to use: google (default), yandex, bing.\n      -k, --api-key                 The API key to be used with the translation service.\n      -p, --preserve-html-entities  Preserve HTML entities in translated text. (False by default.)\n      -e, --exclude                 Regular expression to exclude key paths. e.g. '^(notThis|this|not.this.either)$'\n      -d, --dry-run                 Do not actually translate any values, prefix strings with 'zz_' to mark them.\n      -h, --help                    Show this screen.\n      -v, --version                 Show version.\n      --verbose                     Log more.\n\n    Examples:\n      translate-json --lang=ru ./labels.json ./labels-ru.json\n      translate-json -d --lang=ru ./labels.json ./labels-ru.json\n      translate-json --preserve-html-entities --lang=ru ./labels.json ./labels-ru.json\n      cat input.json | translate-json -l ru - \u003e output.json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechannings%2Ftranslate-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukechannings%2Ftranslate-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechannings%2Ftranslate-json/lists"}