Get Language Identifier in Current Bitrix24 BX24.getLang
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
The method BX24.getLang returns the language identifier in the current Bitrix24. This method works after BX24.init.
String BX24.getLang()
Parameters
No parameters.
Code Example
How to Use Examples in Documentation
BX24.init(function () {
const lang = BX24.getLang();
BX24.loadScript('lang/' + lang + '.js', function () {
console.log('Loading completed');
});
});
Response Handling
The method synchronously returns a result of type string.
Returned Data
|
Name |
Description |
|
result |
Language identifier in the current Bitrix24: |
Continue Learning
Copied
Next