Get the language identifier of the current account BX24.getLang

We are still updating this page

Some data may be missing here — we will complete it soon.

String BX24.getLang()
        

The method BX24.getLang returns the language identifier of the current account. Options: ru|en|de.

The current language is determined during the initialization of the js library; if called before BX24.init, the function will return an empty value.

Example

Loading language messages from an external js file:

BX24.init(function()
        {
            BX24.loadScript('lang/' + BX24.getLang() + '.js', function()
            {
                alert('Loading completed!');
            });
        });
        

How to Use Examples in Documentation