Daily.co is happy to announce support for even more languages in your API calls! We now support Dutch, English, Finnish, French, German, and Portuguese. You can set the language preference for your calls using either the front-end or REST APIs.
Using the REST API
You can set the language preference for your domain (used for all room), a single room, or using a token.
# Domain Level Setting
curl -H "Content-Type: application/json" -H "Authorization: Bearer [[API KEY]]" \
-XPOST -d '{"properties":{"lang":"de"}}' https://api.daily.co/v1/
# Room Setting
curl -H "Content-Type: application/json" -H "Authorization: Bearer [[API KEY]]" \
-XPOST -d '{"properties":{"lang":"en"}}' https://api.daily.co/v1/rooms/[[ROOM NAME]]
# Token Specified
curl -H "Content-Type: application/json" -H "Authorization: Bearer [[API KEY]]" \
-XPOST -d '{"properties":{"room_name": [[ROOM NAME]], "lang":"fi"}}' \
https://api.daily.co/v1/meeting-tokens
Using the front-end API
In the front end, you can set the language for the UI using either the lang
property in the factory methods or by calling setDailyLang()
on your DailyIframe.
callFrame = window.DailyIframe.createFrame({
...
lang: 'fr'
});
// OR
callFrame.setDailyLang('nl');
Note: setDailyLang()
must be called after the call to join()
.
Using a user's browser settings
Instead of specifying a single language, you can also use the value user
to let the user's browser settings determine the language. If the user's settings do not match one of our supported languages, they will default to English. Note: The user
setting is only available via the REST APIs.
Which setting will the UI use?
The language is set according to the following priority:
setDailyLang()
- token
- DailyIframe property
- room
- domain
Special Thanks
We'd like to give a special thank you to all our volunteer translators, Sergio, Eppu, Pierre, Michael, and Daniël! So…Obrigada! Kiitos! Merci! Danke! and Dankjewel!
Do you have a language you'd like to see us support and want to help us get there? Contact us and we can send you a file for translations.