5.8 KiB
KoalaSync Translation & Localization Guide
Welcome to the KoalaSync translation guide! We rely on the open-source community to make KoalaSync accessible to users worldwide.
KoalaSync is split into two independent translation areas. You can translate either one, or both:
- The Browser Extension (
extension/locales/): The core product that users interact with daily. - The Website (
website/locales/): The landing page and invitation bridge.
📊 Supported Languages Dashboard
We divide supported languages into two tiers: Core Languages (fully hand-crafted and audited by native speakers) and Extended Languages (auto-generated using translation models to expand initial coverage).
Tip
Help Us Improve! We welcome community contributions to audit "Auto-Generated" translations and elevate them to "Verified" status.
| Language Code | Language Name | Verification Status | Rationale / Context |
|---|---|---|---|
en |
🇬🇧 English | 100% Manually Verified |
Primary developer language and system default |
de |
🇩🇪 German | 100% Manually Verified |
Core market and compliance baseline |
fr |
🇫🇷 French | Auto-Generated |
Needs manual native review and polishing |
es |
🇪🇸 Spanish | Auto-Generated |
Needs manual native review and polishing |
pt-BR |
🇧🇷 Portuguese (Brasil) | Auto-Generated |
Needs manual native review and polishing |
ru |
🇷🇺 Russian | Auto-Generated |
Needs manual native review and polishing |
it |
🇮🇹 Italian | Auto-Generated |
Needs manual native review and polishing |
pl |
🇵🇱 Polish | Auto-Generated |
Needs manual native review and polishing |
tr |
🇹🇷 Turkish | Auto-Generated |
Needs manual native review and polishing |
nl |
🇳🇱 Dutch | Auto-Generated |
Needs manual native review and polishing |
ja |
🇯🇵 Japanese | Auto-Generated |
Needs manual native review and polishing |
ko |
🇰🇷 Korean | Auto-Generated |
Needs manual native review and polishing |
pt |
🇵🇹 European Portuguese | Auto-Generated |
Needs manual native review and polishing |
Warning
Autogeneration Quality Rule Any newly contributed languages must be marked as
"Auto-Generated"in this table until fully reviewed and signed off by a native speaker in a pull request.
🛠️ How to Translate KoalaSync
Here is the exact step-by-step process for contributing translations.
Step 1: Fork and Clone the Repository
If you are an external contributor, start with the standard Open Source workflow:
- Click the "Fork" button on GitHub to create your own copy of the repository.
- Clone your fork locally:
git clone https://github.com/YOUR-USERNAME/KoalaSync.git - Create a branch:
git checkout -b translation/my-language
Step 2: Translate the Extension
The browser extension handles real-time syncing, settings, and popups.
- Navigate to
extension/locales/. - Edit an existing
[lang].jsonor copyen.jsonto create a new one (e.g.,it.json). - Translate all the string values. Do not change the JSON keys.
Step 3: Translate the Website
The website hosts the landing page and invitation bridge.
- Navigate to
website/locales/. - Edit an existing
[lang].jsonor copyen.jsonto create a new one. - Translate all the string values. Do not change the JSON keys.
- If creating a brand new language, configure the metadata at the top of your JSON file:
{ "LANG_CODE": "it", "HTML_CLASS": "lang-it", "CANONICAL_PATH": "it/", "LANG_TOGGLE_URL": "../", "LANG_TOGGLE_TEXT": "EN" } - If creating a brand new language, register it in
website/build.jsby adding it to thelanguagesarray.
Step 4: Verify Locally
Ensure your JSON files are valid and all keys match the English baseline. Open your terminal in the KoalaSync root folder and run:
# Tests the extension locales for missing keys or syntax errors
node scripts/test-locales.js
# Tests the website locales for missing keys or syntax errors
node scripts/test-website-locales.mjs
# Builds the website with your new translations
node website/build.js
Note: If you receive any errors about missing keys or TODO placeholders, please fix them before submitting.
Step 5: Commit and Pull Request
- Open this
TRANSLATION.mdfile and add/update your language in the Supported Languages Dashboard above. Mark it as100% Manually Verifiedif you are a native speaker. - Commit your changes:
git commit -m "Update Italian translations" - Push to your fork:
git push origin translation/my-language - Open a Pull Request on the main KoalaSync repository on GitHub.
⚖️ Strict Legal Exclusion Rule
Our legal pages have strict constraints to protect user privacy and avoid regulatory liabilities.
Important
DO NOT TRANSLATE LEGAL DOCUMENTS The legal notice (impressum.html) and privacy policy (datenschutz.html) MUST remain exclusively in English and German.
- Rationale: Legal compliance under the European Union General Data Protection Regulation (GDPR) and the German Digital Services Act (DDG). Offering automated translations of legally binding notices introduces compliance risks due to potential mistranslations of liability limits.
- Technical Fallback: Our system automatically falls back to English for legal pages if a user visits them in an unsupported language, so you do not need to worry about this.