Repository navigation
Plan EC: automatic UI localization - #395
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):
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).knownRegionsto the honest set.Two PRs when implemented: P1+P2 code (reviewable), then P3 catalogs (mechanical). Builds on #394, which should merge first.
🤖 Generated with Claude Code