Creates a Locale
The language or the full lang-country string.
Optionalcountry: stringThe country.
StaticgetStaticsetSet current Locale to given parameter.
The current Locale.
Returns the country code.
The country code.
Creates a Intl.Locale instance.
Intl.Locale
Returns the language code in 2 alphabetic characters format.
The language code.
The locale string.
e.g. de-DE or de if no country is present.
Checks if country is present.
true if country has non empty value.
Represents a locale.