Captions: Fix 'system' locale unwanted behavior
Closes: #1268 Having 'system' locale set would wrongfully send the wrong locale information to YouTube, which would result in the captions not being set properly. This commit fixes that behavior.
This commit is contained in:
parent
bd60d3c838
commit
f2d29f667a
|
@ -394,7 +394,7 @@ export default Vue.extend({
|
|||
.captionTracks
|
||||
|
||||
if (typeof captionTracks !== 'undefined') {
|
||||
const locale = localStorage.getItem('locale')
|
||||
const locale = this.$i18n.locale
|
||||
if (locale !== null) {
|
||||
const standardLocale = locale.replace('_', '-')
|
||||
const noLocaleCaption = !captionTracks.some(track =>
|
||||
|
|
Loading…
Reference in New Issue