Design a Versioned Localization Resource Platform
Design build-time validation and resilient runtime delivery of localized interface resources.
Problem statement
Design a platform that serves localized interface text across dozens of countries using stable semantic keys rather than source-language text as keys. Resolve key plus locale through exact locale, language, and default-language fallbacks.
Support placeholders, locale-specific word order, plural categories, and regional number, date, and currency formatting. Distribute versioned resource bundles at runtime while retaining an embedded default bundle for failures.
Validate key completeness and placeholder compatibility during builds, report runtime misses, and use pseudolocalization plus flexible layouts to find expansion problems.
For this exercise, assume 50 locales, ten client platforms, 100,000 semantic keys, 100 releases per day, 15-minute runtime propagation, offline startup, and no execution of translator-supplied code.
What to build
- Authorized localization owners can validate and publish immutable locale-bundle versions.
- Clients resolve semantic key, locale, placeholders, plural category, and regional formatting through a deterministic fallback chain.
- Clients start offline from an embedded default, atomically adopt verified bundles, and report misses or format failures without executing resource content.
At scale
- Source-backed behavior: exact locale, language, and default-language fallback uses stable semantic keys with plural and placeholder support.
- Source-backed quality gates: build-time completeness plus pseudolocalization complement runtime missing-key telemetry.
- Practice assumption: 100,000 keys span 50 locales and ten client platforms with up to 100 bundle releases per day.
- Practice assumption: online clients receive a published bundle within 15 minutes, while offline startup always has an embedded default bundle.