To localize Translate It! into your local language, please follow the steps outlined in this document.
Here is the simplest way to do it:
First, clone the project to your local machine:
git clone https://github.com/iSegar0/Translate-It.gitAll translation files are located in the _locales/ folder.
- If your language already exists (e.g.,
_locales/fa/for Farsi), you can help by improving the existing translations. - If it doesn't exist, we can help you set it up!
The translations are stored in a file called messages.json. It looks like this:
"settings_title": {
"message": "Settings"
}Your Task:
- Change the text inside
"message"(e.g.,"Settings") to your language. - Important: Do NOT change the key on the left (e.g.,
"settings_title").
Some messages have placeholders like {appName} or {version}.
- Please keep these exactly as they are (including the curly braces) so the extension can fill in the correct information automatically.
If you are comfortable using the terminal, we have some tools to make things easier:
- Check Sync Status: Run
pnpm run i18n:sync:statusto see if there are any new English words that need translation. - Auto-Add Missing Keys: Run
pnpm run i18n:sync:fixto automatically add any missing keys from English to your language file. - Remove Unused Keys: Run
pnpm run i18n:check:fixto identify and remove keys that are no longer used in the source code (this keeps the project clean). - Clean Up Notes: After you finish translating, run
pnpm run i18n:purge [your-language-code]to remove the "UNTRANSLATED" notes.
Once you are happy with your translations:
- Submit a Pull Request on GitHub.
- We will review it and include it in the next update!
If you find the technical steps (like GitHub or PRs) confusing, feel free to open an Issue and attach your translated messages.json file there. We'll handle the rest!
Detailed Technical Guide: If you are a developer and want to know how the localization system works behind the scenes, see the Localization Architecture Guide.