Skip to main content

Module locale

Module locale 

Source
Expand description

Locale context provider for runtime-wide internationalization.

The LocaleContext owns the current locale and exposes scoped overrides for widget subtrees. Locale changes are versioned so the runtime can trigger re-renders when the active locale changes.

Structs§

LocaleContext
Runtime locale context with scoped overrides.
LocaleOverride
RAII guard for scoped locale overrides.

Functions§

current_locale
Convenience: get the global locale.
detect_system_locale
Detect the system locale from environment variables.
set_locale
Convenience: set the global locale.

Type Aliases§

Locale
Locale identifier (e.g., "en", "en-US", "ru").