PP.Ui.ConfigClass.setSupportedLanguages

Syntax

setSupportedLanguages (value: Array);

Parameters

value. Array containing codes of supported languages.

Description

The setSupportedLanguages method sets array of supported languages.

Comments

The method sets array of codes of supported languages in LCID format.

By default the following languages are available:

Code Language

1033

English.

1049

Russian.

2052

Chinese.

1058 Ukrainian.

Example

The following code is executed in the browser console on the page of Foresight Analytics Platform standard web application with open express report, workbook or dashboard.

//Get web application settings
conf = PP.Ui.getConfig();
//Keep only English and Russian in the list of supported languages
conf.setSupportedLanguages([1033, 1049]);
//Output a message with a list of supported languages
alert ("Supported languages: " + conf.getSupportedLanguages());

After executing the example the list of supported Web application languages includes only Russian and English. A message with updated list of supported languages appears in the screen.

See also:

PP.Ui.ConfigClass