docs/TRANSLATING.md
Super Productivity uses JSON files for translations, located in src/assets/i18n/.
Important: When adding or changing translation keys, only edit
en.jsondirectly. Other locale files are managed via the i18n script workflow described in i18n-script-usage.md. Editing other locale files by hand may cause your changes to be overwritten.
src/assets/i18n/en.jsonEnglish (en.json) is the fallback language. If a translation is missing or empty, the app automatically displays the English text.
When you see empty strings (""), this is intentional - it triggers the English fallback. Do not copy the English text into empty fields unless you're providing an actual translation.
{
"SOME_KEY": ""
}
The above will display the English text for SOME_KEY.
{
"G": {
"CANCEL": "Abbrechen",
"SAVE": "Speichern"
}
}
en.json as reference for contextng serve)For managing missing translations and maintaining consistency, use the tools/add-missing-i18n-variables.js script. See i18n-script-usage.md for detailed instructions.