Reputation: 21
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.
Upvotes: 2
Views: 579
Reputation: 257
From the GitHub repo's issues,
ui.getControls().getLocalization().changeLocale(['de'])
will switch to a German locale.
Upvotes: 1