B24LangList enumerates the language codes Bitrix24 cloud uses (B24Frame.getLang() returns one of these). B24LocaleMap maps each entry to its BCP-47 locale ('en' → 'en-EN', 'br' → 'pt-BR', …) — handy for Intl.* APIs.
Usage
import { B24LangList, B24LocaleMap } from '@bitrix24/b24jssdk'
const lang = $b24.getLang() // B24LangList
const locale = B24LocaleMap[lang] // 'en-EN' | 'ru-RU' | ...
const fmt = new Intl.DateTimeFormat(locale, { dateStyle: 'long' })
console.log(fmt.format(new Date()))
Enum Values
enum B24LangList {
ru, id, ms,
de, en, la,
fr, in, it,
pl, br, vn,
tr, kz, ua,
ar, th, sc,
tc, ja
}
On Bitrix24.Box installations only 1–2 languages are usually available. Don't assume the whole enum is reachable; gate on
getLang() first.