{"_id":"@elgato/translate","_rev":"7-e97cdcc3acdd231c95f878267da5cbe7","name":"@elgato/translate","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.3":{"name":"@elgato/translate","version":"0.1.3","author":{"url":"https://www.elgato.com","name":"Elgato"},"license":"MIT","_id":"@elgato/translate@0.1.3","maintainers":[{"name":"elgato-bot","email":"richard.herman@corsair.com"}],"homepage":"https://github.com/elgatosf/translate#readme","bugs":{"url":"https://github.com/elgatosf/translate/issues"},"bin":{"translate":"bin/main.js"},"dist":{"shasum":"bc5a3b8b66fc38034b5a8b816dc86969ea080b16","tarball":"https://registry.npmjs.org/@elgato/translate/-/translate-0.1.3.tgz","fileCount":4,"integrity":"sha512-TcVH8c7oiEqXhvU06EfqCpQNyZVBf0Ie4awnhDI7kL0aegpltVXMurkVdhh19cmnuS5PChdFUBngNriW0kNziQ==","signatures":[{"sig":"MEUCIQC2jP4F5UK+apxIMR674WHth1sQNvAf619gAzn1SOxHbgIgAroAqi2eGBGDUy+yP1TNu4FPJiNgqS/5ltzlgZt4T3k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@elgato%2ftranslate@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1307420},"type":"module","gitHead":"9beafc1d34290621cf691be96b0151cef6f41b6c","scripts":{"dev":"rolldown --watch -c","lint":"eslint --max-warnings 0","build":"rolldown -c"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9b503fb-463e-44a9-950a-beac471ccc27"}},"prettier":"@elgato/prettier-config","repository":{"url":"git+https://github.com/elgatosf/translate.git","type":"git"},"_npmVersion":"11.6.1","description":"Translate resource files using DeepL.","directories":{},"_nodeVersion":"24.11.0","dependencies":{"zod":"^4.1.12","jsdom":"^27.0.1","lodash":"^4.17.21","commander":"^14.0.1","deepl-node":"^1.19.1","@clack/prompts":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"rolldown":"1.0.0-beta.44","typescript":"^5.9.3","@types/node":"^24.9.1","@types/jsdom":"^27.0.0","@types/lodash":"^4.17.20","@elgato/eslint-config":"^0.3.1","@elgato/prettier-config":"^0.2.6"},"_npmOperationalInternal":{"tmp":"tmp/translate_0.1.3_1763028620813_0.9084810491680473","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@elgato/translate","version":"0.2.0","description":"Translate resource files using DeepL.","type":"module","bin":{"translate":"bin/main.js"},"scripts":{"build":"rolldown -c","dev":"rolldown --watch -c","lint":"eslint --max-warnings 0"},"prettier":"@elgato/prettier-config","author":{"name":"Elgato","url":"https://www.elgato.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/elgatosf/translate.git"},"homepage":"https://github.com/elgatosf/translate#readme","dependencies":{"@clack/prompts":"^0.11.0","commander":"^14.0.1","deepl-node":"^1.24.0","jsdom":"^27.0.1","lodash":"^4.17.21","zod":"^4.1.12"},"devDependencies":{"@elgato/eslint-config":"^0.3.1","@elgato/prettier-config":"^0.2.6","@types/jsdom":"^27.0.0","@types/lodash":"^4.17.20","@types/node":"^24.9.1","rolldown":"1.0.0-beta.44","typescript":"^5.9.3"},"gitHead":"77ac6ce04c479264a04e279a2c876eb199d50333","_id":"@elgato/translate@0.2.0","bugs":{"url":"https://github.com/elgatosf/translate/issues"},"_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-h64CoVha2Qr58vNDXMs6rIoFb/ImQ555ZHObupqe8Br68ZUG5kJbTIA2jvzvyTpD89B+GRQTlfFw2Y9Y7Xi3wg==","shasum":"5d2d7eecafcf886d57aa237c4986679e1bc001b5","tarball":"https://registry.npmjs.org/@elgato/translate/-/translate-0.2.0.tgz","fileCount":4,"unpackedSize":1311307,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@elgato%2ftranslate@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCR881vIKRt+Z7badlUKEi5uuN3utXw7cybOUj+0/5y0AIhAL19akq0YzMFIKgiuq2vPRH5UqYrKZy/ODn5BGgvKmlK"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f9b503fb-463e-44a9-950a-beac471ccc27"}},"directories":{},"maintainers":[{"name":"elgato-bot","email":"richard.herman@corsair.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/translate_0.2.0_1769527240568_0.3478935574356019"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-13T09:50:21.386Z","modified":"2026-01-27T15:20:41.111Z","0.1.0-beta":"2025-11-13T09:50:21.626Z","0.1.1-beta":"2025-11-13T09:53:42.455Z","0.1.3":"2025-11-13T10:10:21.058Z","0.2.0":"2026-01-27T15:20:40.809Z"},"bugs":{"url":"https://github.com/elgatosf/translate/issues"},"author":{"name":"Elgato","url":"https://www.elgato.com"},"license":"MIT","homepage":"https://github.com/elgatosf/translate#readme","repository":{"type":"git","url":"git+https://github.com/elgatosf/translate.git"},"description":"Translate resource files using DeepL.","maintainers":[{"name":"elgato-bot","email":"richard.herman@corsair.com"}],"readme":"<div align=\"center\">\n\n# @elgato/translate\n\nCommand-line tool for translating resource files with [DeepL](https://www.deepl.com/)\n\n[![@elgato/translate npm package](https://img.shields.io/npm/v/%40elgato/translate?logo=npm&logoColor=white)](https://www.npmjs.com/package/@elgato/translate)\n[![Elgato homepage](https://img.shields.io/badge/Elgato-3431cf?labelColor=grey&logo=elgato)](https://elgato.com)\n\n</div>\n\n## Pre-requisites\n\n- DeepL auth key\n- English text in JSON or RESW format\n\n## Usage\n\n1. Install `@elgato/translate`\n\n```\nnpm install @elgato/translate -g\n```\n\n2. Run the initialization wizard\n```\ntranslate init\n```\n\n3. Translate resources\n\n```\ntranslate -k <DEEPL_AUTH_KEY>\n```\n\n## Configuration\n\nMain configuration that defines the source texts, and target languages.\n\n| Name        | Type                                                              | Description                    | Required |\n| ----------- | ----------------------------------------------------------------- | ------------------------------ | -------- |\n| `source`    | `string`                                                          | Path to the English text.      | ✅       |\n| `targets`   | `TargetLanguage[]`                                                | Languages to translate to.     | ✅       |\n| `formality` | `\"less\"`, `\"prefer_less\"`, `\"default\"`, `\"prefer_more\"`, `\"more\"` | Formality of the translations. |          |\n\n### TargetLanguage\n\nTarget languages the source texts will be translated to.\n\n| Name        | Type                                                              | Description                                                                                                                      | Required |\n| ----------- | ----------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------- |\n| `code`      | `string`                                                          | Language code, [learn more](https://developers.deepl.com/docs/getting-started/supported-languages#translation-target-languages). | ✅       |\n| `formality` | `\"less\"`, `\"prefer_less\"`, `\"default\"`, `\"prefer_more\"`, `\"more\"` | Formality of the translations.                                                                                                   |          |\n| `file`      | `string`                                                          | Output file.                                                                                                                     |          |\n| `glossary`  | `string`                                                          | DeepL glossary identifier.                                                                                                       |          |\n| `overrides` | `Override[]`                                                      | Manual overrides.                                                                                                                |          |\n\n### Override\n\nAllows for manual translations.\n\n| Name   | Type     | Description                                                 | Required |\n| ------ | -------- | ----------------------------------------------------------- | -------- |\n| `text` | `string` | Text that should not be translated with the remote service. | ✅       |\n| `out`  | `string` | Output text; when unspecified, the original text is output. |          |\n\n## CLI Options\n\n`-k, --auth-key <auth_key>`\n\n- Default: `undefined` (required)\n- Type: String\n\nThe DeepL authentication key used to translate text with DeepL\n\n`-c, --config <path>`\n\n- Default: `translations.config.json`\n- Type: String\n\nPath to the configuration file.\n","readmeFilename":"README.md"}