Module

providers/i18n/control

Methods

# async inner getDefaultLocaleCode(segmentationValueopt) → {Promise.<String>}

Returns the default locale code of the application, when no selected

Parameters:
Name Type Attributes Description
segmentationValue string <optional>

optional segment to get a different config

default locale code

Promise.<String>

# async inner getLocale(localeCode, segmentationValueopt) → {Promise.<Object>}

Returns an specific dictionary based on a locale code

Parameters:
Name Type Attributes Description
localeCode String

locale code to get the Locale/Dictionary from

segmentationValue string <optional>

optional segment to get a different config

locale associated

Promise.<Object>

# async inner getLocales(segmentationValueopt) → {Promise.<Array.<String>>}

Returns all the available dictionaries/locales of the application

Parameters:
Name Type Attributes Description
segmentationValue string <optional>

optional segment to get a different config

All the application local codes

Promise.<Array.<String>>