All launcher UI strings live here as JSON files, one per language.
- Fork the repository on GitHub.
- Create
locales/<tag>.json, named by the BCP 47 language tag for your language in its canonical form (e.g.fr.jsonfor French,pt-BR.jsonfor Brazilian Portuguese,zh-CN.jsonfor Simplified Chinese). - Translate the strings you want, keeping the JSON keys and nesting from
en.json. A key you leave out is shown in English, so the file can start small and grow. - Open a Pull Request with the title
i18n: add [language name] translation.
No code changes are needed. The app finds every JSON file in locales, lists it in Settings → Language, and shows how much of it is translated in Translation status.
- Copy the root
README.mdtodocs/README.<lang>.md, using the BCP 47 language tag for your language (e.g.docs/README.zh-CN.md). - Translate the content. Keep links, badges, code blocks, and brand names intact. Prefix repo-relative paths with
../— the file lives one level deeper (e.g.LICENSE→../LICENSE). Absolute URLs are unchanged. - Add a language link to the root
README.md, right below the tagline. Precede the link(s) with a single🌐glyph marking the language switcher. Use each language's endonym (its name in that language) as the link text, separated by|— e.g.简体中文for Simplified Chinese,Українськаfor Ukrainian. If a language link is already present, append the new link into the same<p>block rather than adding another one:<p align="center"> 🌐 <a href="docs/README.zh-CN.md">简体中文</a> | <a href="docs/README.uk.md">Українська</a> </p>
- Add a link back to the root
README.mdin the translated file, placed in the same position as the language link in the rootREADME.md(right below the tagline). Only link back toEnglish— do not cross-link to sibling translations:<p align="center"> 🌐 <a href="../README.md">English</a> </p>
Just translate the text:
"play": "PLAY"Strings containing {{name}} are templates. The {{param}} placeholder is replaced at runtime. Keep the placeholder in your translation, but you can move it to wherever it belongs grammatically:
"licenseBody": "Your Microsoft account doesn't have a Java Edition license. Purchase Minecraft to play {{name}}."→ French example:
"licenseBody": "Votre compte Microsoft n'a pas de licence Java Edition. Achetez Minecraft pour jouer à {{name}}."One-letter (or shortest) weekday names for the playtime chart, one key per day:
"dayAbbr": { "sun": "S", "mon": "M", "tue": "T", "wed": "W", "thu": "T", "fri": "F", "sat": "S" }This entry has four keys for different Java version ranges. Translate each label:
"javaVersionLabel": {
"v21plus": "Recommended for MC 1.20.5+",
"v17to20": "Suitable for MC 1.18–1.20.4",
"v16": "Suitable for MC 1.17",
"legacy": "Suitable for MC ≤1.16.5"
}Memory labels used in instance forms. {{gb}} and {{mb}} are the numeric values. Usually these don't need translation unless your language uses different unit abbreviations.
Run these from the repository root after pnpm install:
| Command | What it does |
|---|---|
pnpm i18n:status |
Coverage for every language |
pnpm i18n:missing <tag> |
List the keys a language is missing, with their English text |
pnpm i18n:create <tag> |
Start a new language filled with marked English |
pnpm i18n:fill <tag> |
Add marked English for keys a language is missing |
pnpm i18n:translate <tag> |
Translate a language interactively |
pnpm i18n:review <tag> |
Keep or edit translations whose English changed |
pnpm i18n:check [tag] |
Validate English or one language |
pnpm i18n:help |
Show the translator workflow |
Refract reads locale files with lexmit, which can mark a translated string with a prefix:
| Value | Meaning | What the app shows |
|---|---|---|
"Відкрити" |
Translated | The translation |
"? Відкрити" |
Translated, but the English text changed since. Check it still fits, then remove ? |
The translation |
"! Open" |
Not translated yet, English copied as a placeholder. Replace it with your translation | English |
A translation whose {{param}} placeholders differ from English is also shown in English, so a broken placeholder never reaches the interface.
- Run
pnpm check:contractsafter editing to catch JSON syntax errors, wrong value types and placeholders that do not match English. - You can preview your translation by selecting it in Settings → Language while the dev build is running.
- If a string is hard to translate or has no natural equivalent, leave the key out rather than copying the English text. A missing key falls back to English and still counts as untranslated, while copied English counts as translated.
- For strings that differ by plural count (
{{n}} installations), both ajavaDetectedandjavaDetectedSinglekey exist. Translate both.