Skip to content

Add Japanese language support#829

Open
soma3978 wants to merge 6 commits intomauriceboe:devfrom
soma3978:dev
Open

Add Japanese language support#829
soma3978 wants to merge 6 commits intomauriceboe:devfrom
soma3978:dev

Conversation

@soma3978
Copy link
Copy Markdown

Description

This PR introduces a new ja locale and provides translations for existing i18n keys.

Related Issue or Discussion

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist

  • I have read the Contributing Guidelines
  • My branch is up to date with dev
  • This PR targets the dev branch, not main
  • I have tested my changes locally
  • I have added/updated tests that prove my fix is effective or that my feature works
  • I have updated documentation if needed

Copilot AI review requested due to automatic review settings April 22, 2026 13:50
@soma3978
Copy link
Copy Markdown
Author

This is my first PR, so please let me know if anything needs to be changed.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Japanese (ja-JP) as a supported UI language and wires it into the client i18n layer.

Changes:

  • Added a new Japanese translation file (ja.ts) with translations for existing i18n keys.
  • Registered Japanese in the supported language list (SUPPORTED_LANGUAGES).
  • Included the new locale in TranslationContext so it can be selected and loaded.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
client/src/i18n/translations/ja.ts Adds the Japanese translation dictionary for the client UI.
client/src/i18n/supportedLanguages.ts Registers ja as a selectable supported language with locale ja-JP.
client/src/i18n/TranslationContext.tsx Imports Japanese translations and includes them in the translation map / intl language mapping.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread client/src/i18n/translations/ja.ts Outdated
Comment on lines 40 to 43
export function getIntlLanguage(language: string): string {
if (language === 'br') return 'pt-BR'
return ['de', 'es', 'fr', 'hu', 'it', 'ru', 'zh', 'zh-TW', 'nl', 'ar', 'cs', 'pl', 'id'].includes(language) ? language : 'en'
return ['de', 'es', 'fr', 'hu', 'it', 'ru', 'zh', 'zh-TW', 'nl', 'ar', 'cs', 'pl', 'id', 'ja' ].includes(language) ? language : 'en'
}
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

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

There’s an extra space before the closing bracket in the language allowlist ('ja' ]). Please remove it (and consider deriving this allowlist from SUPPORTED_LANGUAGES to avoid future drift).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

Comment on lines +31 to +36
'common.date': '日付',
'common.rename': '名前を変更',
'common.name': '名前',
'common.email': 'メールアドレス',
'common.password': 'パスワード',
'common.saving': '保存中…',
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

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

ja translations are missing common.discardChanges and common.discard (these keys exist in all other locales and are used in the UI). Add Japanese strings for both so Japanese users don’t see the English fallback.

Copilot uses AI. Check for mistakes.
soma3978 and others added 2 commits April 22, 2026 23:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants