getString

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

Returns the localized string for the given key and language. Falls back to the default language, then to the key itself if not found.

Return

The localized string or the key as fallback

Parameters

key

The string key

lang

The language code (e.g., "en", "es", "de")