BX24.getLang
String BX24.getLang()
Returns the language ID for the current account. The following returned values are possible: ru|en|de.
Example
This code will load language messages from an external JS file.
BX24.loadScript('lang/' + BX24.getLang() + '.js', function() { alert('Messages loaded!'); });
Current language is defined at the stage of JS library initialisation. When calling prior to BX24.init the function will return null value.
© «Bitrix24», 2001-2024