locale-translate

Crates.iolocale-translate
lib.rslocale-translate
version0.3.0
created_at2025-10-20 02:47:24.727538+00
updated_at2025-10-26 23:26:36.565773+00
descriptionCRATE HAS BEEN MOVED. PLEASE USE CRATE `ltranslate`.
homepage
repositoryhttps://github.com/lthoerner/ltranslate
max_upload_size
id1891316
size63,233
Lowell Thoerner (lthoerner)

documentation

README

locale-translate

A basic utility for translating locale files using DeepL.

Installation

You'll need to install Cargo, then run cargo install locale-translate. You may have to manually add the Cargo binary folder to your PATH, but if all goes well the installer will do so automatically.

Usage

Start by setting up a DeepL API account and generating an API key. Copy the key and use it to set the DEEPL_API_KEY environment variable.

Run the tool using locale-translate. You will be prompted for your desired target language, the name of the source locale file, and the name of the output locale file. The source file must meet two basic requirements:

  1. It must be the English locale file. Other languages are currently not supported.
  2. It must be a JSON file with a single object that only contains simple key-value pairs, and all values must be strings.

Make sure to monitor your API usage to avoid running out of credit.

Commit count: 0

cargo fmt