public Locale(notnull language as String, notnull country as String = "")
Constructs a new Locale from language and country codes. Unknown codes are retained; formatting data defaults to English when the language has no predefined data. Empty codes designate the root locale.
| Parameter | Description |
|---|---|
language | Language code; normalized to lowercase. |
country | Optional country code; normalized to uppercase. |
locale = Locale("FR", "ca")