Skip to main content

Module i18n

Module i18n 

Source
Expand description

Localized strings for platform-owned UI.

lingxia-platform sits below the i18n string table (which lives in lingxia-logic, and lingxia-logic depends on this crate), so it cannot call the table directly. Instead the logic layer installs a translator hook here once at startup; platform scenes look strings up by stable key, falling back to their bundled English literal before runtime initialization.

Functionsยง

set_localizer
Installs the locale-aware lookup owned by the logic layer. Later calls are ignored; scenes never supply localized strings per invocation.
text
Resolves key, falling back when runtime localization is unavailable.