Class

AdmI18n

AdmI18n()

---------------------------------------------------------------------------------------------- Class AdmI18n - internationalization Module ----------------------------------------------------------------------------------------------
Constructor

# new AdmI18n()

Create an adamantium internationalization instance.

View Source i18n/AdmI18n.js, line 15

Methods

# changeLanguage(code)

Change language (be set from user language switch component) and reload page.
Parameters:
Name Type Description
code string language iso-code

View Source i18n/AdmI18n.js, line 102

# detectLanguage() → {string}

Detect current language.

View Source i18n/AdmI18n.js, line 32

language iso code
string

# getDefaultLanguage() → {string}

Get default language - first language in languages array list

View Source i18n/AdmI18n.js, line 94

language iso code
string

# getLanguage() → {string}

Get current language.

View Source i18n/AdmI18n.js, line 64

language iso code
string

# isDefaultLanguage() → {boolean}

Check if language ids default language.

View Source i18n/AdmI18n.js, line 86

true || false
boolean

# setLanguage(code) → {boolean}

Set current language.
Parameters:
Name Type Description
code string language iso-code

View Source i18n/AdmI18n.js, line 73

false -> language not available
boolean