YakuCheck rules
YC rules check key parity; JA rules check Japanese UI conventions. Change severity in .yakucheck.json ("JA109": "off").
| ID | Severity | Rule | Example |
|---|---|---|---|
YC001 | error | Missing key in target The UI shows the raw key or the source text. | |
YC002 | warning | Extra key in target Probably a stale translation. | |
YC003 | error | Placeholder / tag mismatch Missing {name} or <b> breaks rendering or throws at runtime. | Hello, {name}✕ こんにちは、{namae}さん○ こんにちは、{name}さん |
YC004 | error | Empty translation Nothing is shown in the UI. | |
YC005 | warning | Untranslated (same as source) English leaks into the Japanese UI. Add product names to keepTerms. | |
YC006 | error | Type mismatch A string and an object are swapped. | |
YC007 | warning | Plural forms do not fit Japanese Japanese has only the "other" plural category (CLDR). Without _other, i18next shows nothing. | |
YC008 | error | Broken ICU syntax Unbalanced braces make next-intl throw at runtime. | |
YC201 | warning | Inconsistent translations The same source string is translated differently in different keys. | |
YC203 | error | Glossary term not used The translation does not use the glossary term. | |
YC204 | warning | Keep-term was translated A term listed in keepTerms is missing from the translation. | |
JA101 | error | Typical UI mistranslation Machine translation often picks the wrong sense of short UI words (Close → "near", Home → "house"). | Close✕ 近い○ 閉じる |
JA102 | warning | Mixed polite / plain style Mixing polite (desu/masu) and plain style looks careless to Japanese users. | ✕ 保存できない。○ 保存できません。 |
JA103 | warning | Inconsistent spelling Variants such as ユーザー/ユーザ or ログイン/サインイン are mixed. Align to the majority. | ✕ ユーザ名○ ユーザー名 |
JA104 | warning | Full-width / half-width characters Japanese UI uses half-width letters/digits, full-width katakana, and 、。 for punctuation. | ✕ ログイン:IDを入力,○ ログイン:IDを入力、 |
JA105 | warning | Button label style Japanese buttons are short: no 。, no "してください" or "します" (e.g. 保存, 送信する). | Save✕ 保存してください。○ 保存 |
JA106 | warning | Success toast style Japanese success messages use "〜しました" (保存しました), not 保存済み / 保存された. | Saved✕ 保存済み○ 保存しました |
JA107 | warning | Error message style Japanese error messages avoid "!" and use "〜できませんでした" with the next step. | Failed to save!✕ 保存に失敗した!○ 保存できませんでした。 |
JA108 | warning | Literal "your" (あなたの) Japanese UI drops "your": "Your account" → アカウント, not あなたのアカウント. | Your account✕ あなたのアカウント○ アカウント |
JA109 | info | Inconsistent spacing around Latin words Spacing between Japanese and Latin words is inconsistent. | |
JA110 | warning | Literal "please" / "kindly" "Please" → どうぞ and "kindly" → 親切に are literal translations. | Please enter your email✕ どうぞあなたのメールを入力してください○ メールアドレスを入力してください |
JA111 | warning | Latin quotes in Japanese text Japanese text quotes with 「」. | ✕ "保存"を押す○ 「保存」を押す |
JA112 | info | Long button label Keep Japanese buttons within ~12 characters (they wrap on phones). |
Typical UI mistranslations (JA101, 33 patterns)
Applied only when the source is a short UI string (not to sentences).
| Source | Wrong | Natural |
|---|---|---|
| Close | 近い・近く | 閉じる |
| Back | 背中・背面・裏側 | 戻る |
| Home | 家・住宅 | ホーム |
| Save | 救う・節約・貯金・貯める | 保存 |
| Free | 自由 | 無料 |
| Book | 本 | 予約する |
| Order | 順序・命令・秩序 | 注文 |
| Post | 柱・支柱 | 投稿 |
| Submit | 服従・降伏・従う | 送信 |
| Sign in | 署名・標識・看板 | ログイン |
| Sign up | 署名・標識・看板 | 新規登録 |
| Sign out | 署名・標識 | ログアウト |
| Log in | 丸太・記録の中 | ログイン |
| Run | 走る・走って | 実行 |
| Draft | 徴兵・喫水・隙間風 | 下書き |
| Share | 株・株式・分け前 | 共有 |
| Clear | 透明・明確・晴れ | クリア |
| Refresh | 爽やか・元気 | 更新 |
| Feed | 餌・えさ・飼料 | フィード |
| Dismiss | 解雇・退ける | 閉じる |
| Bill | 法案・くちばし・紙幣 | 請求書 |
| Trial | 公判・試練・裁判 | 無料トライアル |
| Plan | 計画・企画 | プラン |
| Account | 勘定・口座・説明 | アカウント |
| Invalid | 病人・病弱・傷病 | 正しくありません |
| Execute | 処刑 | 実行 |
| Kill | 殺す・殺害 | 強制終了 |
| Abort | 中絶 | 中止 |
| Like | 好き・のような・似ている | いいね |
| Follow | 従う・追跡・後に続く | フォローする |
| Match | マッチ棒 | 一致 |
| Tag | 鬼ごっこ・値札 | タグ |
| Started | 驚いた・びっくり | 始める |
Spelling variant groups (JA103)
When two or more appear in one file, YakuCheck suggests the majority form.
- ユーザー / ユーザ
- サーバー / サーバ
- コンピューター / コンピュータ
- ブラウザー / ブラウザ
- フォルダー / フォルダ
- パラメーター / パラメータ
- プリンター / プリンタ
- マネージャー / マネージャ / マネジャー
- ディレクトリー / ディレクトリ
- カテゴリー / カテゴリ
- メモリー / メモリ
- ライブラリー / ライブラリ
- セキュリティー / セキュリティ
- エディター / エディタ
- コンテナー / コンテナ
- スキャナー / スキャナ
- ヘッダー / ヘッダ
- フッター / フッタ
- フィルター / フィルタ
- プロバイダー / プロバイダ
- アダプター / アダプタ
- お問い合わせ / お問合せ / お問合わせ
- 問い合わせ / 問合せ / 問合わせ
- 申し込み / 申込み
- 引き落とし / 引落し / 引落とし
- 取り消し / 取消し
- 受け付け / 受付け
- 読み込み / 読込み / 読込
- 書き込み / 書込み
- 振り込み / 振込み
- 売り上げ / 売上げ
- ログイン / サインイン / ログオン
- ログアウト / サインアウト / ログオフ
- メールアドレス / Eメールアドレス / Eメールアドレス / メアド
- キャンセル / 取り消す
- 削除 / 消去