Get Language Identifier in Current Bitrix24 BX24.getLang
Choose a tool for developing with an AI agent:
- use Alaio Vibecode to build an app for Bitrix24 from a task description without knowing any programming language. The agent writes the code and deploys the app to a server, with no manual hosting setup
- use the MCP server to develop a REST API integration in your own project. The agent refers to 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: |