From f2d29f667a0673db7f25504185c25bfdbed9f1b2 Mon Sep 17 00:00:00 2001 From: Svallinn <41585298+Svallinn@users.noreply.github.com> Date: Tue, 11 May 2021 18:25:47 +0100 Subject: [PATCH] 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. --- src/renderer/views/Watch/Watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js index 7b0dbee3..c0d6fa6b 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -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 =>