data class Locale
Represents a platform independent representation of a locale consisting of a language, a script, a country and a variant.
Locale(language: String, country: String) Locale(language: String) Locale(language: String, script: String?, country: String?, variant: String?)
Represents a platform independent representation of a locale consisting of a language, a script, a country and a variant. |
val country: String?
can be null or needs to consist of at least one letter and only letters |
|
val language: String
consists of at least one letter and only letters |
|
val script: String?
can be null or needs to consist of at least one letter and only letters |
|
val variant: String?
can be null or needs at least one character, cannot be blank though (use null instead) |
fun toString(): String
Returns a string representation of Locale. |
fun Locale.toJavaLocale(): Locale
Transforms this Locale into a java.util.Locale. |