Skip to content

Translation quality

Why short UI strings get mistranslated into Japanese

Short strings like Close or Home arrive without context, so translators can pick the wrong sense. Typical errors, passing context, avoiding concatenation and wording Japanese buttons.

Last checked

Key points

  • 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

Why short strings are the riskiest part of a UI

An English interface is full of one-word strings: Close, Home, Save, Free, Share, Draft. In a dictionary each of these has several unrelated senses. "Close" can mean "to shut" (閉じる) or "near" (近い). "Free" can mean "no charge" (無料) or "freedom" (自由). A human reading the screen knows instantly which sense is meant, because the word sits on a button in a toolbar or next to a price. A translator reading en.json does not. The message file is a list of keys and values; it does not say whether a value is a button, a heading or the middle of a sentence.

So the translator, or the machine translation engine, has to guess. Long sentences carry their own context, and the guess is usually right. A single word carries almost none. Microsoft's Japanese Localization Style Guide warns that translating word by word, without understanding the whole paragraph or page, produces content that is unnatural and can even be ridiculous (section 2.1.4, Word-to-word translation). Short UI strings are the extreme case of that problem: there is no paragraph at all.

Words whose other sense is easy to pick

English UI words and translations that use a different sense
English stringMeaning in the UIWrong-sense translation
Close閉じる (shut a dialog)近い (near)
Homeホーム (home screen)家 (a house)
Save保存 (store a file)救う・節約 (rescue, economize)
Free無料 (no charge)自由 (freedom)
Sign inログイン (log in)署名 (a signature)
Submit送信 (send a form)服従 (obey)
Share共有 (share a link)株 (a stock share)
Bill請求書 (an invoice)法案・紙幣 (a law bill, a banknote)
Draft下書き (unsent text)徴兵・喫水 (conscription, a ship's draught)
Plan (pricing)プラン (a pricing plan)計画 (a project plan)

The right-hand column shows translations that take another dictionary sense of the English word. It does not mean every tool produces them. Treat the table as a list of the kinds of confusion that become possible when context is missing.

Give translators the context they need

Android's official localization guide asks developers to describe the context of every string they declare in strings.xml. It says this information is invaluable to the translator and results in better quality translation. The questions it suggests answering are simple: what is the string for, when and where is it shown, and where is it in the UI. It also points out that translations are less flexible in buttons than in text boxes, which is exactly why length limits belong in the note.

Example from the Android guide (strings.xml)
<!-- The action for submitting a form. This text is on a button that can fit 30 chars -->
<string name="login_submit_button">Sign in</string>

JSON message files used with next-intl or i18next cannot hold comments. The practical substitute is to encode placement and role in the namespace and the key name. A translator who sees Toolbar.closeButton will not translate it as "near". If the same English word appears with two meanings, give each meaning its own key, even when the English text is identical today. That also lets the Japanese differ later without touching code.

Namespaces and key names that carry the role (en.json)
{
  "Toolbar": {
    "closeButton": "Close",
    "homeLink": "Home"
  },
  "StoreFinder": {
    "nearbyTitle": "Stores close to you"
  }
}

What to put in key names or notes

  • Placement: the screen or component, such as Toolbar, Dialog or Settings, usually as the namespace.
  • Role: Button, Title, Placeholder, Error, Toast and so on, usually as a suffix of the key.
  • Length limit: for buttons, tabs and other places with a fixed width, write the limit in a note for translators.
  • Parts that must not be translated: product names, code and placeholders. Android marks these with an <xliff:g> tag so the translator leaves them alone.

If your team needs longer explanations than a key name can carry, keep a separate file of notes keyed by message ID and send it with the strings. The important thing is that the information travels with the text to whoever translates it, including an AI model.

Do not build sentences from fragments

The W3C Internationalization Quick Tips advise care when composing sentences from multiple strings, and warn against fixing the positions of variables in text. Japanese word order is very different from English: the verb comes at the end, and particles attach to nouns. If the code joins three separately translated pieces such as "Delete", the file name and "?", there is no way for the translator to produce a natural Japanese sentence, because they never see the sentence.

With next-intl, write the whole sentence as one ICU message with placeholders. Links and emphasis can stay inside the sentence as tags and be turned into components with t.rich, so the translator decides where they go.

One message per sentence (en.json and ja.json)
// en.json
{
  "deleteConfirm": "Delete {name}? This cannot be undone.",
  "terms": "Please read the <link>terms</link>."
}

// ja.json
{
  "deleteConfirm": "{name} を削除しますか?元に戻せません。",
  "terms": "<link>利用規約</link>をお読みください。"
}
Turning a tag into a component (next-intl t.rich)
const t = useTranslations('Footer');

t.rich('terms', {
  link: (chunks) => <a href="/terms">{chunks}</a>
});

Notice that the Japanese puts the link at the start of the sentence and the verb at the end. That reordering is only possible because the sentence is a single message.

How Japanese buttons and prompts are worded

English buttons are usually imperative verbs: Save, Delete, Continue. Japanese buttons are usually noun phrases (体言止め): 保存, 削除. Microsoft's guide says to use noun phrases for menu titles, menu commands, dialog labels, command buttons and tabs, to use the polite desu-masu style for explanatory text, and to use 〜してください。 when a sentence asks the user to take an action (section 4.2, Style and tone consideration). A button that reads 保存してください。 therefore uses the form of an explanatory sentence, not a button.

Examples from Microsoft's Japanese style guide
EnglishRecommended JapaneseAvoided form
Next次へ次
Open an itemアイテムを開くアイテムの開き
We can't find a printer. Do you want to add one?プリンターが見つかりません。追加しますか?a version that spells out "we" and "you"

Leave "your" out

The same guide says the second-person pronoun (you, your) can be omitted in many cases, and that あなた should be used only after considering whether it is really necessary, taking care not to sound impolite (section 4.1.8, Pronouns). "Your account" is simply アカウント, and "your files" is ファイル. When a role must be explicit, the guide suggests words such as ユーザー or 管理者, and お客様 in customer-facing text.

A checklist after translation

  1. Put the role in the key

    Use namespaces and key names that say where the string is and what it is (Button, Title, Error).

  2. List the short strings

    Extract every one- and two-word string and compare its translation with the meaning on screen.

  3. Align the forms

    Check that buttons are noun phrases, explanations use desu-masu, and errors tell the user what to do next.

  4. Look at the real screen

    Check wrapping, truncation and word order in the running app, on a phone as well as a desktop.

None of these steps needs a Japanese speaker for every string. A reviewer who knows Japanese can focus on the short strings and the sentences that changed, while the rest is checked mechanically.

FAQ

Should we stop using machine translation or AI translation?

The root cause is missing context more than the tool. Pass placement and role along with the strings, and have a person or a rule-based check review the short strings after translation. That removes most sense errors.

Where do we put context if JSON cannot hold comments?

The easiest place is the namespace and the key name. For longer explanations, keep a separate notes file keyed by message ID and give it to translators together with the strings.

Must every Japanese button be a noun phrase?

Microsoft's guide uses noun phrases as the default and allows a plain verb form such as アイテムを開く when it is clearer. What matters most is that one product uses the same form throughout.

How YakuCheck helps

YakuCheck rule JA101 uses a dictionary of typical UI sense errors, such as Close → 近い, Home → 家 and Sign in → 署名, and suggests the correct translation. It also checks the button form (JA105), a literal "your" (JA108) and a literal "please" (JA110).

The GitHub Action and CLI read where each key is used in your code (button, toast, error, heading, input placeholder) and apply the rules for that role. Your code is read locally and is never uploaded.

On the Try page you can paste an en.json and a ja.json and run the same rules entirely in your browser.

Sources

Last checked

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