Flutter の ARB ファイルを翻訳して結果をチェック
app_de.arb が app_en.arb から遅れます。キーが一つ足りず、ICU の分岐が一つ消えています。足りないキーには gen-l10n がテンプレートの文言を使うので、抜けはそのままリリースされます。以下で、一つのコマンドが見つけ、もう一つが埋めます。
KAERISはこのページを翻訳し、すべての行を逆翻訳して確認しました。ネイティブスピーカーによるレビューはまだ行われていません。 英語原文
サンプルプロジェクト
小さな Flutter ARB プロジェクト: 英語のソースと、更新が遅れたドイツ語ファイル。以下のコマンドはまさにこのファイルで実行しました。
{
"@@locale": "en",
"greeting": "Hi, {name}!",
"@greeting": {
"placeholders": { "name": { "type": "String" } }
},
"unreadCount": "{count, plural, =0{No new messages} =1{1 new message} other{{count} new messages}}",
"@unreadCount": {
"placeholders": { "count": { "type": "int" } }
},
"signOut": "Sign out",
"lastSeen": "Last seen {date}",
"@lastSeen": {
"placeholders": { "date": { "type": "DateTime", "format": "yMMMd" } }
}
}
{
"@@locale": "de",
"greeting": "Hallo, {name}!",
"unreadCount": "{count, plural, =0{Keine neuen Nachrichten} other{Neue Nachrichten}}",
"signOut": "Abmelden"
}
1. 足りないものを見つける
kaeris check は各翻訳をソースファイルと比較します。キーもアカウントも不要でオフラインで動き、問題が見つかるとコード 1 で終了するので、CI ジョブをそこで止められます。
$ npx kaeris check --source lib/l10n/app_en.arb --langs de
✗ de: 1 missing key(s): lastSeen
✗ de: 2 translation fault(s):
unreadCount: number 1 from the source is missing or changed in the translation
unreadCount: ICU exact-match branch =1 {…} was dropped in the translation
✗ 1 missing key, 2 translation faults
2. 足りないキーだけを翻訳する
--only-new はドイツ語ファイルに無いキーだけを送り、ファイルに追加します。既にある行は壊れたものも含めてそのまま残ります。コマンドは Python パッケージに入っています: pip install kaeris。
$ kaeris translate lib/l10n/app_en.arb --langs de --only-new
→ no key: free demo limits 10,000 chars per file, 8 languages per run, get a key: kaeris.dev/developer
→ de: 1 new key(s) to translate
→ Run: openai/gpt-6-luna · Free · 1/1 languages · 1 strings · 3.5s
16 charged
✓ Translation QA: no placeholder loss, no overflow risks
→ Project memory: +1 · 1 strings, 1 translations in kaeris-tm.json
✓ de: merged 1 key(s) → lib/l10n/app_de.arb
→ 3 key(s) already exist in de but nothing in kaeris.lock vouches for them, so they were left alone AND left unlocked. If the source changed after those files were made, those edits are NOT translated. Re-run once with --no-only-new to rebuild them, or with --assume-current if the files are known to match.
{
"@@locale": "de",
"greeting": "Hallo, {name}!",
"unreadCount": "{count, plural, =0{Keine neuen Nachrichten} other{Neue Nachrichten}}",
"signOut": "Abmelden",
"lastSeen": "Zuletzt gesehen {date}"
}
3. もう一度チェックする
足りなかったキーは埋まりました。残っているのはこの実行の前から壊れていた行です。手で直すか、--no-only-new でファイル全体を翻訳し直してください。
$ npx kaeris check --source lib/l10n/app_en.arb --langs de
✗ de: 2 translation fault(s):
unreadCount: number 1 from the source is missing or changed in the translation
unreadCount: ICU exact-match branch =1 {…} was dropped in the translation
✗ 2 translation faults
2026 年 11 月 2 日、キーなしの無料プランで実行: チェックは npx kaeris 0.2.42、翻訳は PyPI の kaeris 0.2.42。出力は表示されたままで、進捗行とローカルのフォルダパスだけを省いています。
Flutter ARB で kaeris check が見つけるもの
足りないキー
app_en.arbにあってapp_de.arbに無いキー。翻訳に@keyメタデータは要りません。ICU の完全一致分岐
消えた
=1分岐は報告され、その中にあった数値も報告されます。名前が変わったプレースホルダー
{name}の代わりの{userName}は、失われた 1 つと作られた 1 つとして報告されます。otherが無いother分岐の無い plural や select はエラーです。
料金
kaeris checkは無料お使いのマシンで動きます。キー不要、アカウント不要、上限なし。
翻訳は無料で始められます
キーなし: 1 ファイル 10,000 文字、1 日 300,000 文字、1 回の実行で最大 8 言語。無料キーがあれば 1 ファイル 50,000 文字、月 1.5M 文字に増えます。量は対象言語ごとに文字数を 1 回ずつ数えます。
無料プランを超える場合
Lifetime は $79 の一回払いで、ご自身の OpenRouter キーで動くため、モデルの費用は別途かかります。Pro は月 $19 または年 $190 で、月 12M 文字です。料金
よくある質問
app_de.arb に @metadata は必要ですか?
いいえ。プレースホルダーは app_en.arb で一度だけ記述します。チェックは翻訳に @key を求めず、上の実行でも追加されていません。
gen-l10n で使えますか?
はい。ファイルは flutter gen-l10n が lib/l10n から読む app_<lang>.arb という名前のままです。ARB ファイルも参照してください。
CIで実行できますか?
はい。npx kaeris check は問題が見つかるとコード 1 で終了します。手順: GitHub Actions、GitLab CI、pre-commit。
続ける
check リファレンス · CLI リファレンス · ブラウザで無料チェック · ブラウザで翻訳
ほかのスタック: react-i18next · next-intl · vue-i18n · iOS · Android