LocaleManager

LocaleManager

new LocaleManager()

Source:

Locale manager class

Methods

init() → {Promise.<i18next.TranslationFunction>}

Source:

Initializes the locale manager

Returns:
Type
Promise.<i18next.TranslationFunction>

localizedPerm(perm) → {string}

Source:

Returns a localized permission

Parameters:
Name Type Description
perm string

Permission

Returns:
Type
string

reload() → {Promise.<void>}

Source:

Reloads the locales

Returns:
Type
Promise.<void>

str(str, opt) → {string}

Source:

Returns a localized string

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

string

opt map

options

Returns:
Type
string