Dictionary.getLocales

Syntax

getLocales();

Description

The getLocales method gets an array of MDM dictionary attributes.

Example

To execute this example, the page must contain the DictionaryBox component named dictionaryBox (see. Example of Creating the DictionaryBox Component):

// Get MDM dictionary
var source = dictionaryBox.getSource()[0];
// Get a list of identifiers of available locales
console.log("Available locales: " + source.getLocales());

After executing the example identifiers of available dictionary locales are obtained.

See also:

Dictionary