localizeOrNull

fun Context.localizeOrNull(tableName: String, key: String): String?

Localizes a key from a table.

Return

the localized string if the key exists in the table, null otherwise

Parameters

tableName

name of the table

key

key to localize

See also


Localizes a key from the stdlib table.

Return

the localized string if the key exists in the std table, null otherwise

Parameters

key

key to localize

See also