localized
fun String.localized(stringLoader: StringLoader = DefaultStringLoader(), defaultValue: String = this): String
Treats this string as a resource identifier for a String and grabs the associated String
Return
The String associated with the identifier represented by this String, or defaultValue if no such String could be found.
Parameters
stringLoader
The StringLoader used for loading the associated String resource.
defaultValue
The String to return if no match was found for the identifier. Defaults to this
.