setSupportedLanguages (value: Array);
value. Array containing codes of supported languages.
The setSupportedLanguages method sets array of supported languages.
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. |
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: