diff --git a/src/App.vue b/src/App.vue index 4db3bfb8..3b1dc465 100644 --- a/src/App.vue +++ b/src/App.vue @@ -64,7 +64,7 @@ export default { const App = this; (async function () { - const defaultLang = await App.defaultLangage; + const defaultLang = await App.defaultLanguage; const locale = App.getPreferenceString("hl", defaultLang); if (locale !== App.TimeAgoConfig.locale) { const localeTime = await import(`../node_modules/javascript-time-ago/locale/${locale}.json`) diff --git a/src/components/PreferencesPage.vue b/src/components/PreferencesPage.vue index 879f5119..80c1fcfb 100644 --- a/src/components/PreferencesPage.vue +++ b/src/components/PreferencesPage.vue @@ -506,7 +506,7 @@ export default { this.minimizeRecommendations = this.getPreferenceBoolean("minimizeRecommendations", false); this.watchHistory = this.getPreferenceBoolean("watchHistory", false); this.searchHistory = this.getPreferenceBoolean("searchHistory", false); - this.selectedLanguage = this.getPreferenceString("hl", await this.defaultLangage); + this.selectedLanguage = this.getPreferenceString("hl", await this.defaultLanguage); this.enabledCodecs = this.getPreferenceString("enabledCodecs", "vp9,avc").split(","); this.disableLBRY = this.getPreferenceBoolean("disableLBRY", false); this.proxyLBRY = this.getPreferenceBoolean("proxyLBRY", false); @@ -530,7 +530,7 @@ export default { if ( this.getPreferenceString("theme", "dark") !== this.selectedTheme || this.getPreferenceBoolean("watchHistory", false) != this.watchHistory || - this.getPreferenceString("hl", await this.defaultLangage) !== this.selectedLanguage || + this.getPreferenceString("hl", await this.defaultLanguage) !== this.selectedLanguage || this.getPreferenceString("enabledCodecs", "av1,vp9,avc") !== this.enabledCodecs.join(",") ) shouldReload = true; diff --git a/src/main.js b/src/main.js index 66bbb0eb..655cf88a 100644 --- a/src/main.js +++ b/src/main.js @@ -237,7 +237,7 @@ const mixin = { return false; } }, - async defaultLangage() { + async defaultLanguage() { const languages = window.navigator.languages; for (let i = 0; i < languages.length; i++) { try {