Skip to content

feat(ui): add Japanese translation - #7974

Open
rogervokma-stack wants to merge 4 commits into
open-edge-platform:developfrom
rogervokma-stack:add-japanese-translation
Open

rogervokma-stack wants to merge 4 commits into
open-edge-platform:developfrom
rogervokma-stack:add-japanese-translation

Conversation

@rogervokma-stack

@rogervokma-stack rogervokma-stack commented Nov 20, 2026 •

Copy link
Copy Markdown

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 _one keys are kept so the catalog satisfies typeof en. Japanese has a single plural form, so _one and _other carry the same text.
  • ja registered in src/i18n/locales.ts and in the locale list in locales.test.ts.
  • Browser-detection checks for ja and ja-JP, and a pinned ja-JP, in config.test.ts, shaped like the German and Indonesian ones (added after the Copilot review).
  • Japanese added to the supported languages in 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

  • The PR title and description are clear and descriptive
  • I have manually tested the changes
  • All changes are covered by automated tests
  • All related issues are linked to this PR (if applicable)
  • Documentation has been updated (if applicable)

🤖 Generated with Claude Code

All 793 strings of the current en.json, with the same keys in the same order, and ja registered next to the other languages.
@rogervokma-stack
rogervokma-stack requested a review from a team as a code owner November 20, 2026 15:18
@github-actions github-actions Bot added DOC Improvements or additions to documentation Geti UI Issues related to Geti application frontend labels Nov 20, 2026
@leoll2
leoll2 requested a lite review from Copilot November 24, 2026 12:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 ja with 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

Comment thread application/ui/src/i18n/locales/ja.json Resolved
hi: { translation: hi satisfies Catalog },
id: { translation: id satisfies Catalog },
it: { translation: it satisfies Catalog },
ja: { translation: ja satisfies Catalog },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

rogervokma-stack and others added 2 commits November 24, 2026 21:40
…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.
@leoll2

leoll2 commented Dec 3, 2026

Copy link
Copy Markdown
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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DOC Improvements or additions to documentation Geti UI Issues related to Geti application frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants