Methods
# changeLanguage(code)
Change language (be set from user language switch component) and reload page.
Parameters:
Name | Type | Description |
---|---|---|
code |
string
|
language iso-code |
# getDefaultLanguage() → {string}
Get default language - first language in languages array list
language iso code
string
# setLanguage(code) → {boolean}
Set current language.
Parameters:
Name | Type | Description |
---|---|---|
code |
string
|
language iso-code |
false -> language not available
boolean