String BX24.getLang()

Returns the language ID for the current account. The following returned values are possible: ru|en|de.


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.

User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix24», 2001-2021