I18n()

Class I18n

new I18n()

Creates an instance of I18n.

Methods

get(key, code) → {string}

Get text of key

Parameters:
Name Type Description
key string

key of text

code string

locale code

Returns:
string

setCode(code)

Set locale code

Parameters:
Name Type Description
code string

locale code

setLanguage(codes, data)

Set language set

Parameters:
Name Type Description
codes string | Array.<string>

locale code

data object

language set