localizedString

fun localizedString(key: String, language: Language? = textLanguage, doNotRepeatTwiceInARow: Boolean = true): String

Returns a random string from the loaded sheet with specified key and language.

Parameters

key

The key to the string to fetch (first column).

language

The language corresponding to the sheet language code (second column).

doNotRepeatTwiceInARow

if set to false the function will take a random string from the options without track of the previous ones