> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# getDailyLang()

> Returns the current language setting and the resolved language in effect.

`getDailyLang()`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

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 }>`:

<ResponseField name="lang" type="DailyLanguage">
  The language currently in effect (e.g. `'en'`, `'fr'`, `'de'`).
</ResponseField>

<ResponseField name="langSetting" type="DailyLanguageSetting">
  The value explicitly set via [`setDailyLang()`](/reference/daily-js/instance-methods/set-daily-lang) or the room/domain configuration. May be a language code or `'user'` (follow the browser's language preference).
</ResponseField>

## Example

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

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [setDailyLang()](/reference/daily-js/instance-methods/set-daily-lang)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [lang-updated](/reference/daily-js/events/iframe-ui-events#lang-updated)
  </Card>
</CardGroup>
