Changing Shaka player locale

Viewed 206

The website I'm making has an option to switch display language between German and English. Shaka player seems to have support for localization switching, but I couldn't manage to display the player in anything other than English. Tried using changeLocale on a new shaka.ui.Localization instance, but it doesn't appear to have an effect on the player.

Would appreciate any example of switching between locales.

1 Answers

From the GitHub repo's issues,

ui.getControls().getLocalization().changeLocale(['de']) will switch to a German locale.

Related