Official translations for merged.games
  • TypeScript 73.5%
  • JavaScript 24.6%
  • CSS 1.9%
Find a file
2026-06-11 17:32:58 +00:00
.github/workflows change push 2025-09-14 17:40:55 +02:00
merged added team prefixes 2026-06-11 19:32:43 +02:00
ui fix: update nextjs 2026-05-17 19:16:01 +02:00
.gitignore feat: add translations ui 2025-09-29 09:24:22 +02:00
generator.js feat: upade translator 2026-05-24 13:02:47 +02:00
README.md Auto-generate translations coverage [no ci] 2026-06-11 17:32:58 +00:00
reverse.js fix: update default translation format 2025-01-16 16:52:14 +01:00

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: 849
Supported languages: de, en, es, fr, it, jp, pl, ru, sv, zh

Language Coverage Files Missing
DE ██████████ 100.0% 849/849 0
EN ██████████ 100.0% 849/849 0
ES ░░░░░░░░░░ 0.1% 1/849 848
FR ░░░░░░░░░░ 0.1% 1/849 848
IT ░░░░░░░░░░ 0.1% 1/849 848
JP ░░░░░░░░░░ 0.1% 1/849 848
PL ░░░░░░░░░░ 0.1% 1/849 848
RU ░░░░░░░░░░ 0.1% 1/849 848
SV ████░░░░░░ 43.8% 372/849 477
ZH ░░░░░░░░░░ 0.1% 1/849 848

Last updated: 2026-06-11

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

  1. Add or modify translation files: Place JSON translation files in the appropriate directory structure under the merged folder.
  2. Run the generator:
    node generator.js
    
    This will produce the translations.generated.json file 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:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Update or add translation files:
    • Place your JSON files in the appropriate folder structure under merged.
    • Run the generator.js script to regenerate the translations.generated.json file.
  4. 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 http://localhost:3000 in your browser and start editing.

Contact

If you have questions or suggestions, feel free to open an issue in the repository.