Skip to main content
getDailyLang() Prebuilt Custom Returns the current language configuration — both the language explicitly set and the language actually in effect. These differ when langSetting is 'user', which defers to the browser’s language preference. In custom call object mode, this reflects any language configured at the room or domain level, which you can read and apply to your own UI.

Return value

Returns a Promise<{ lang: DailyLanguage, langSetting: DailyLanguageSetting }>:
lang
DailyLanguage
The language currently in effect (e.g. 'en', 'fr', 'de').
langSetting
DailyLanguageSetting
The value explicitly set via setDailyLang() or the room/domain configuration. May be a language code or 'user' (follow the browser’s language preference).

Example

const { lang, langSetting } = await call.getDailyLang();
console.log('In effect:', lang);       // e.g. 'en'
console.log('Setting:', langSetting);  // e.g. 'user'

See also