Constructor
new Locale(language, regionopt, scriptopt, variantsopt, extlangopt, privateUseopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
language | string | ||
region | string | <optional> | |
script | string | <optional> | |
variants | string | <optional> | |
extlang | string | <optional> | |
privateUse | string | <optional> |
- Since
- 1.13.0
- Copyright
- schukai GmbH
- License
- AGPLv3
Throws:
unsupported locale
- Type
- Error
Members
extlang
language
localeString
privateUse
region
script
variants
(static) instanceSymbol
This method is called by the
instanceof
operator.This method is called by the instanceof
operator.
- Since
- 3.27.0
Methods
getMap() → {Monster.I18n.LocaleMap}
The structure has the following: language, script, region, variants, extlang, privateUse
.The structure has the following: language, script, region, variants, extlang, privateUse
Returns:
- Type:
- Monster.
I18n. LocaleMap
toString() → {string}
Returns:
- Type:
- string