Constructor
new PackageLanguageData()
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
lang |
string | A string language code which is validated by Intl.getCanonicalLocales |
|
name |
string | The human-readable language name |
|
path |
string | The relative path to included JSON translation strings |
|
system |
string |
<optional> |
Only apply this set of translations when a specific system is being used |
Extends
- DocumentData
Methods
(static) validateLocale(lang) → {boolean}
Validate that a language code is supported as a canonical locale
Parameters:
Name | Type | Description |
---|---|---|
lang |
string | The candidate language to validate |
Returns:
Is it valid?
- Type
- boolean