Skip to content

Guides

Guides for developers shipping a Japanese version

What tends to go wrong when you add Japanese with next-intl or i18next (mistranslated short strings, missing keys, plural forms, writing conventions) and how to catch it in CI, based on official documentation.

Last checked

Browse by topic

All articles

ArticleTopicKey points
Why short UI strings get mistranslated into JapaneseTranslation quality
  • One- and two-word UI strings have several meanings, and a translator without context can pick the wrong one
  • Pass placement, role and length limits to translators through key names, namespaces or notes
  • Keep each sentence as one message with placeholders instead of concatenating fragments
  • Japanese buttons are usually noun phrases such as 保存, and "your" is usually left untranslated
Key parity in next-intl and i18next: finding missing and extra keysKeys and message format
  • By default next-intl logs an error and renders namespace.key when a message is missing
  • i18next falls back to fallbackLng, and treats an empty string as a valid translation by default
  • TypeScript types are generated from the default-language file, so they cannot see gaps in ja.json
  • When comparing files, group i18next plural suffixes such as _one and _other under their base key
ICU MessageFormat plurals in Japanese: why "other" is enoughKeys and message format
  • CLDR gives Japanese only the other category, for both cardinal and ordinal numbers
  • ICU plural, select and selectordinal require an other branch, and FormatJS throws without it
  • Exact matches such as =0 work regardless of language rules, so they can stay in Japanese
  • In i18next, Japanese needs only the key_other entry, and the variable must be named count
Japanese UI writing conventions: style, punctuation, width and long vowelsTranslation quality
  • Do not mix desu-masu and plain style in body text; buttons and headings are usually noun phrases
  • Use 、 and 。 for punctuation, half-width letters and digits, and full-width katakana
  • Spacing around Latin text and katakana long vowels differ between the two guides, so pick one rule per product
  • Error messages use 〜できません or 〜できませんでした and tell the user what to do next
Checking translations in CI: validate ja.json on every pull requestChecking in CI
  • Use pull_request with its default activity types and a paths filter so the job runs only when message files or the code using them change
  • Declare only the permissions you need; once you declare any, the rest are set to none
  • Pull requests from forks get a read-only GITHUB_TOKEN and no other secrets
  • Annotations (::error) and the job summary show which keys are wrong, directly on the pull request

Library behavior changes between versions. Check the official documentation for the version you use.