Welcome to the new Daily Docs. Please let us know what you think.

getDailyLang()

getDailyLang()

Compatibility:
Prebuilt
Custom

Returns a Promise that resolves to { lang: <language>, langSetting: <specified language> }, telling you both the language actually in effect and the language you've specified.

Using getDailyLang() with the Daily call object

In custom applications built on the Daily call object, the getDailyLang() and setDailyLang() methods can be used to retrieve and change a user’s language preference in a way that is consistent with how Daily Prebuilt would do it. Using these methods ensures that if a room’s language is set via the dashboard or the REST API, the UI will match.