name: translate
description: Sync messages/en.json and messages/ja.json for this repository. Use when the user asks to update translations, fill missing Japanese strings, or remove stale i18n keys. Run bun run build before reading translations, then add missing Japanese entries, fill empty values, remove stale keys, preserve key order from en.json, and keep placeholders, ICU syntax, and brand names unchanged.
Sync translations between messages/en.json and messages/ja.json.
- Run
bun run buildbefore reading the translation files so extracted messages are current. - Read
messages/en.jsonandmessages/ja.json. - Add any keys present in
en.jsonbut missing inja.json. - Fill any
ja.jsonvalues that are empty strings using natural Japanese. - Remove keys from
ja.jsonthat no longer exist inen.json. - Preserve the same key order as
en.json. - Keep brand names untranslated.
- Keep placeholders such as
{count},{name}, and{date}intact. - Keep ICU plural syntax intact.