|
All checks were successful
Generate and Upload Translations / generate-and-upload (push) Successful in 9s
|
||
|---|---|---|
| .github/workflows | ||
| merged | ||
| ui | ||
| .gitignore | ||
| generator.js | ||
| README.md | ||
| reverse.js | ||
Merged i18n
Centralized Translation Repository
This repository manages all multilingual translations for the project in a single JSON file: translations.generated.json. The centralized structure ensures consistency and simplifies updates by consolidating all languages in one place.
Translation Coverage
Total translation files: 63
Supported languages: de, en, es, fr, it, jp, pl, ru, zh
| Language | Coverage | Files | Missing |
|---|---|---|---|
| DE | ██████████ 100.0% | 63/63 | 0 |
| EN | ██████████ 100.0% | 63/63 | 0 |
| ES | ██████░░░░ 55.6% | 35/63 | 28 |
| FR | ██████████ 100.0% | 63/63 | 0 |
| IT | █████████░ 93.7% | 59/63 | 4 |
| JP | █████████░ 90.5% | 57/63 | 6 |
| PL | █████████░ 93.7% | 59/63 | 4 |
| RU | █████████░ 90.5% | 57/63 | 6 |
| ZH | █████████░ 90.5% | 57/63 | 6 |
Last updated: 2025-11-01
Translation Format
The translations.generated.json file organizes translations in a nested structure:
- Keys represent the unique identifiers for each translatable string, generated automatically from the file structure.
- Sub-keys represent the supported language codes (e.g.,
en,de,fr). - Values are the localized translations for each language.
Example:
{
"de": "Party erstellen",
"en": "Create party",
"fr": "Créer une partie",
"it": "Crea una partita",
"pl": "Utwórz grupę",
"ru": "Создать группу",
"zh": "创建队伍"
}
Using the Project
Prerequisites
- Ensure you have Node.js installed.
Generating the Translations Index
- Add or modify translation files: Place JSON translation files in the appropriate directory structure under the
mergedfolder. - Run the generator:
This will produce thenode generator.jstranslations.generated.jsonfile in the root directory, containing all the translations consolidated into a single JSON object.
Contributing
We welcome contributions to improve or expand translations. Please follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Update or add translation files:
- Place your JSON files in the appropriate folder structure under
merged. - Run the
generator.jsscript to regenerate thetranslations.generated.jsonfile.
- Place your JSON files in the appropriate folder structure under
- Submit a pull request with a clear description of your changes.
You may also use the Web UI to manage the translation strings. Make sure to have node installed, and run these commands:
cd ui
npm i
npm run dev
Open https://localhost:3000 in your browser and start editing.
Contact
If you have questions or suggestions, feel free to open an issue in the repository.