Automate your translation workflow
with AI-Powered CLI
Avoid boring stuff, translate 30x faster
Before
- Add new key in your main language file and copy the translated value.
- Go on a translation website like Deepl or Google Translate.
- Repeat for every language (average 3)
- Paste...
- Wait...
- Copy...
- Paste back...
- Back to code!
After
- Add new key in your main language file.
- Run "
npx heyt translate
" - Back to code!
*Based on a medium size file of 600 keys, translated one by one
Blazing easy to get started
1. Get the Api Key
The first thing to do is to register for free with HeyTranslate and create an api key in the dashboard. Add the api key you just created to your environment variables. The variable should be named “HEYT_API_KEY”.
2. Create the config file
Create the configuration file named “heytranslate.config.json” and configure it properly according to the files to be translated and the languages in which you want to do the translations.
3. Build the cache
Do you already have files translated into other languages? Build the cache with "npx heyt build-cache" so that only new keys are translated and added, this way HeyTranslate takes less time to translate and processes fewer characters, ensuring speed and convenience.
4. Translate!
Now everything is in place, from now on you only need to send the command “npx heyt translate” to translate all the previously configured JSONs into the desired languages.