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.

© «Bitrix Inc.», 2001-2020, «Bitrix Inc.», 2020