Repository navigation
feat(ui): add Japanese translation - #7974
Open
rogervokma-stack wants to merge 4 commits into
Open
rogervokma-stack wants to merge 4 commits into
rogervokma-stack wants to merge 4 commits into
Conversation
All 793 strings of the current en.json, with the same keys in the same order, and ja registered next to the other languages.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Active issues remain: Japanese locale detection lacks assertions for base and regional tags, and the quantize job label is mistranslated as optimization instead of quantization.
2 open issues
What changed in this PR
Adds Japanese (ja) localization support to the UI, including a complete translation catalog, locale registration, locale coverage testing, and documentation updates.
Changes:
- Adds the Japanese translation catalog with matching keys, plural variants, and interpolation placeholders.
- Registers
jawith the i18n resources and locale tests. - Documents Japanese as a supported UI language.
| File | Description |
|---|---|
| application/ui/src/i18n/locales/ja.json | Adds the complete Japanese UI translation catalog. |
| application/ui/src/i18n/locales.ts | Imports and registers the Japanese locale resource. |
| application/ui/src/i18n/locales.test.ts | Includes Japanese in the expected locale registry coverage. |
| application/ui/README.md | Documents Japanese as a supported UI language. |
Review effort: Lite
| hi: { translation: hi satisfies Catalog }, | ||
| id: { translation: id satisfies Catalog }, | ||
| it: { translation: it satisfies Catalog }, | ||
| ja: { translation: ja satisfies Catalog }, |
…ts for ja jobs.type.quantize now reads 量子化 (quantization), matching the quantization dialog and the German catalog. config.test.ts gets the checks the other locales have: browser languages ja and ja-JP resolve to ja and are cached, and a pinned ja-JP resolves to ja.
Contributor
|
Hi @rogervokma-stack, there is a small merge conflict that prevents this PR to be merged. Could you please resolve it? |
Resolves the conflict with the Bengali (bn) additions: README lists both bn and ja, locales.ts and the tests register both. ja.json gains the 16 keys added to en.json since (copyPaste, two hotkeys, ome), so ja has the same 809 keys as en and no obsolete ones.
leoll2
approved these changes
Dec 3, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Adds a Japanese (
ja) translation of the UI, done the same way as Russian (#7831) and Indonesian (#7902):src/i18n/locales/ja.json: all 793 strings of the current en.json, with the same keys in the same order. The_onekeys are kept so the catalog satisfiestypeof en. Japanese has a single plural form, so_oneand_othercarry the same text.jaregistered insrc/i18n/locales.tsand in the locale list inlocales.test.ts.jaandja-JP, and a pinnedja-JP, inconfig.test.ts, shaped like the German and Indonesian ones (added after the Copilot review).application/ui/README.md.The language selector takes its names from
Intl.DisplayNames, so it shows 日本語 without further changes.The terms are the ones Japanese computer-vision tools commonly use (アノテーション for annotation, データセット for dataset, 学習 for training, 推論 for inference, 量子化 for quantization), and each one is the same everywhere it appears. Buttons are short, and messages use the polite form. In the rate-limit fields, "every" stands alone between the samples field and the seconds field, so it is translated as /, which reads as "per" in that position.
How to test
I checked the file with a script: same keys and order as en.json, no empty values, the same
{{...}}placeholders, and the file shape of en.json. A second AI pass compared the translation with the English, and the places it flagged were read again. Where a string is built from parts in code (the reason shown when training is not possible, the rate-limit fields), the code was read too. I have not run the tests or the app locally. With the browser language set to Japanese, or with 日本語 picked in the language selector, the UI should show the translation.This was made with AI (Claude).
Checklist
🤖 Generated with Claude Code