setDefaultLocale

@JvmStatic
fun setDefaultLocale(locale: String)

Sets the default locale. By default, it is en.

Note: This function uses ISO 639-1 language code to identify the language. For more information see ISO 639-1.

Example:

setDefaultLocale("fa")

Since

1.1.0

See also

Throws

IllegalArgumentException

if the locale is not supported.