Skip to main content
The UI language controls the text shown in the Bunny Stream player interface, such as the settings menu, control tooltips, and caption labels. You can set it in two ways:
  • Library default: set UILanguage on the video library so every video in that library uses the same player language.
  • Per player: add the lang query parameter to an embed or direct play URL to override the library default for that player only.
If neither is set, English (en) is used.

Supported languages

Use the code in the Code column as the value of the UILanguage field or the lang query parameter.
Some language codes differ from the ISO 639-1 standard, always use the codes listed above.

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 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 UILanguage field to your chosen language code.
Only the fields you include in the request body are changed. All other library settings stay as they are.
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.
To switch back to the default, set UILanguage to en.

Override per player with a query parameter

Add lang 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.
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.

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.
Last modified on November 11, 2026