CLI tool for translating JSON, YAML, CSV, ARB, XML files
Top 81.6% on sourcepulse
This tool addresses the challenge of synchronizing and translating localization files across multiple formats, targeting developers and localization teams. It offers automated translation via various services while preserving manual edits and allowing custom prompts for nuanced control.
How It Works
The tool operates as a command-line interface (CLI) that reads source localization files (JSON, YAML, XML, ARB, CSV, etc.), translates specified content using configured services (OpenAI, Google Translate, Azure), and writes the output to target files. A key design principle is preserving manual translations; any user-defined text in target files is protected from being overwritten in subsequent runs. It also supports format conversion and custom prompts to guide AI translation quality.
Quick Start & Requirements
npm install --global attranslate
or npm install --save-dev attranslate
for JavaScript projects.attranslate --srcFile=<source> --srcLng=<source_lang> --srcFormat=<format> --targetFile=<target> --targetLng=<target_lang> --targetFormat=<format> --service=<service_name>
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
2 months ago
1 week