# Locales Flat key → string dicts, one file per language: `en.php`, `ja.php`, `zh.php`. Loaded by `partials/i18n.php` via the `t($key)` helper. **EN is source of truth.** Missing keys in ja/zh fall back to English, then to the key string itself. When you add UI strings, add the EN key first and mirror it in ja/zh in the same change when possible. ## Migration strategy The existing `foo.php` / `foo_jp.php` / `foo_zh.php` triples are kept as-is. When you next edit a page triple, collapse it: 1. `require_once __DIR__ . '/partials/i18n.php';` at the top of `foo.php`. 2. Replace the hardcoded English strings with ``. 3. Add matching keys to `locales/{en,ja,zh}.php`. 4. Replace `foo_jp.php` / `foo_zh.php` with a one-line redirect stub: `