LocalizedStrings

Provides runtime access to localized strings for the multipaz-utopia module.

Translations are looked up in the utopia-specific GeneratedTranslations map. The lookup falls back to English (en) and finally to the key itself when no translation is found.

The current locale is resolved through the platform integration provided by the multipaz-doctypes module.

Functions

Link copied to clipboard

Returns all available locales for which translations are bundled.

Link copied to clipboard

Returns the normalized current platform locale used for translation lookup.

Link copied to clipboard

Returns a localized value for key using the current platform locale.

fun getString(key: String, locale: String): String

Returns a localized value for key using the provided locale.

fun getString(key: String, locale: String, placeholders: Map<String, String>): String

Returns a localized value for key using locale, replacing placeholders in the form {placeholder} with values from placeholders.