i18n + Lazy
Locale switching across four languages (including right-to-left Arabic) with a lazily code-split stats module.
What it demonstrates
lazy(...)code-splitting with fallback and error states — the stats section's bundle loads on demand.@llui/componentsLocaleContextso components read locale-aware labels from context.- Effects-as-data syncing the document's
lang/dirfor proper RTL layout. - Custom per-locale overrides for
en,es,ja, andar.
UI
Four locale buttons, a dialog whose close label comes from context, and a stats section that lazy-loads on first click. Selecting Arabic flips the layout to RTL.
Running locally
pnpm install
pnpm --filter @llui/example-i18n-lazy dev