- Library default: set
UILanguageon the video library so every video in that library uses the same player language. - Per player: add the
langquery parameter to an embed or direct play URL to override the library default for that player only.
en) is used.
Supported languages
Use the code in the Code column as the value of theUILanguage field or the lang query parameter.
Set the library default
1
Get your API key and library ID
You need your account API key and the ID of the video library you want to update. To find your API key, go to Account → API key in the bunny.net dashboard.
2
Check which languages support player translation (optional)
Call Get Languages to retrieve the current list of languages. Only entries where
Use each entry’s
SupportPlayerTranslation is true can be used as the player UI language. Use each entry’s
ShortCode as the value.Example response item
3
Update the video library
Call Update Video Library and set the Only the fields you include in the request body are changed. All other library settings stay as they are.
UILanguage field to your chosen language code.4
Verify the change
A successful request returns
200 with the updated video library, where UILanguage shows the new value. Reload any page with an embedded player to see the translated interface.Override per player with a query parameter
Addlang to an embed or direct play URL to set the player language for that player only. It overrides the library’s UILanguage setting, and the library setting stays unchanged. This is useful on multilingual sites, where each page can load the player in the visitor’s language.
- Embed URL
- Direct play URL
lang can be combined with other player parameters using &. For example, to load the French interface with French captions turned on:
If the library uses embed view token authentication, keep the
token and expires parameters in the URL and add lang alongside them.Related
Update Video Library
Set the
UILanguage field for a video library.Get Languages
List languages and check
SupportPlayerTranslation.Embedding videos
Embed and direct play URLs, plus all supported player parameters.