getRawString

open override fun getRawString(key: String, defaultValue: String?): String?

Gets the raw string value for the given key from the JSON object. If the key does not exist, it writes the default value to the JSON object and returns it.

Return

the string value for the key or null if both the key and the default value are null

Parameters

key

the key of the translation

defaultValue

the default value to use if the key does not exist