setLocaleMessages
Sets locales with the auto provided LookupMessages to be available when using the format function.
Note: This function uses ISO 639-1 language code to identify the language. For more information see ISO 639-1.
Example:
setLocaleMessages("fa", "en", AR)
Since
1.1.0
See also
Throws
if the locales is not supported.
Sets a locale with the auto provided LookupMessages to be available when using the format function.
Note: This function uses ISO 639-1 language code to identify the language. For more information see ISO 639-1.
Example:
setLocaleMessages("fa")
Since
1.1.0
See also
Throws
if the locale is not supported.
Sets a locale with the provided lookupMessages to be available when using the format function.
Note: This function uses ISO 639-1 language code to identify the language. For more information see ISO 639-1.
Example:
object CustomMessages : LookupMessages {
...
}
setLocaleMessages("custom", CustomMessages)
If you want to define locale message implement LookupMessages interface with the desired messages.
Since
1.1.0