Skip to content

Plan EC: automatic UI localization - #395

Merged
straff2002 merged 1 commit into
mainfrom
docs/plan-ec-ui-localization
Sep 2, 2026
Merged

straff2002 merged 1 commit into
mainfrom
docs/plan-ec-ui-localization

Conversation

@straff2002

Copy link
Copy Markdown
Owner

Docs-only: adds Plan EC and its index row.

Goal: the UI renders in the phone's language automatically — iOS already does the picking; the catalog has to be worth picking. Today it's 1,864 keys with an early 178-key slice translated into seven languages and everything since English-only, so a German phone gets a ~9% mix and a Dutch phone gets pure English.

Shape (decided 2026-09-02):

  • Languages: zh-Hans, es, de, fr, ja, pt-BR, nl, uk, plus completing the already-started zh-Hant and pl; es-MX stays an override layer over es.
  • P1 — close the verbatim gaps Let the design kit's authored copy reach the string catalog #394 left: model-carried copy (LocalizedStringResource), the composition components' own words, String(localized:) for runtime-built sentences, plural variants (uk/pl have three plural categories — the English ternary hacks are wrong there).
  • P2 — deterministic guardrails over the catalog file: format-specifier parity (the machine-translation tripwire), per-language coverage floor, plural completeness, and pruning the ~30-language aspirational knownRegions to the honest set.
  • P3 — MT-first catalog fills, one commit per language, nl/uk leading; human-review flag list for onboarding, telemetry disclosures, medical/legal, and first-aid copy before any store-listing claim.

Two PRs when implemented: P1+P2 code (reviewable), then P3 catalogs (mechanical). Builds on #394, which should merge first.

🤖 Generated with Claude Code

The design-kit conversion (#394) let authored copy reach the string
catalog; the owner decision the same day made translation a goal. The
plan is coverage completion, not greenfield: knownRegions already
declares ~30 languages and an early 178-key slice was translated into
seven of them before the catalog drifted to 1,864 English-only keys.

P1 closes the remaining verbatim gaps (model-carried copy via
LocalizedStringResource, the composition components' own words, plural
variants where English ternaries stand in for real plural rules), P2
adds deterministic catalog guardrails (specifier parity against MT
mistakes, per-language coverage floor, pruning knownRegions to the
honest set), P3 fills ten catalogs machine-first with a human-review
flag list for privacy/medical/legal copy - nl and uk lead to prove the
pipeline, uk exercising the three-way plurals.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@straff2002
straff2002 merged commit 376b1a7 into main Sep 2, 2026
1 check passed
@straff2002
straff2002 deleted the docs/plan-ec-ui-localization branch September 2, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant