mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-23 05:57:21 +00:00
Fix typo: defaultLangage to defaultLanguage
This commit is contained in:
parent
01fb40463d
commit
fe64adf6d6
@ -64,7 +64,7 @@ export default {
|
|||||||
const App = this;
|
const App = this;
|
||||||
|
|
||||||
(async function () {
|
(async function () {
|
||||||
const defaultLang = await App.defaultLangage;
|
const defaultLang = await App.defaultLanguage;
|
||||||
const locale = App.getPreferenceString("hl", defaultLang);
|
const locale = App.getPreferenceString("hl", defaultLang);
|
||||||
if (locale !== App.TimeAgoConfig.locale) {
|
if (locale !== App.TimeAgoConfig.locale) {
|
||||||
const localeTime = await import(`../node_modules/javascript-time-ago/locale/${locale}.json`)
|
const localeTime = await import(`../node_modules/javascript-time-ago/locale/${locale}.json`)
|
||||||
|
@ -506,7 +506,7 @@ export default {
|
|||||||
this.minimizeRecommendations = this.getPreferenceBoolean("minimizeRecommendations", false);
|
this.minimizeRecommendations = this.getPreferenceBoolean("minimizeRecommendations", false);
|
||||||
this.watchHistory = this.getPreferenceBoolean("watchHistory", false);
|
this.watchHistory = this.getPreferenceBoolean("watchHistory", false);
|
||||||
this.searchHistory = this.getPreferenceBoolean("searchHistory", 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.enabledCodecs = this.getPreferenceString("enabledCodecs", "vp9,avc").split(",");
|
||||||
this.disableLBRY = this.getPreferenceBoolean("disableLBRY", false);
|
this.disableLBRY = this.getPreferenceBoolean("disableLBRY", false);
|
||||||
this.proxyLBRY = this.getPreferenceBoolean("proxyLBRY", false);
|
this.proxyLBRY = this.getPreferenceBoolean("proxyLBRY", false);
|
||||||
@ -530,7 +530,7 @@ export default {
|
|||||||
if (
|
if (
|
||||||
this.getPreferenceString("theme", "dark") !== this.selectedTheme ||
|
this.getPreferenceString("theme", "dark") !== this.selectedTheme ||
|
||||||
this.getPreferenceBoolean("watchHistory", false) != this.watchHistory ||
|
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(",")
|
this.getPreferenceString("enabledCodecs", "av1,vp9,avc") !== this.enabledCodecs.join(",")
|
||||||
)
|
)
|
||||||
shouldReload = true;
|
shouldReload = true;
|
||||||
|
@ -237,7 +237,7 @@ const mixin = {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async defaultLangage() {
|
async defaultLanguage() {
|
||||||
const languages = window.navigator.languages;
|
const languages = window.navigator.languages;
|
||||||
for (let i = 0; i < languages.length; i++) {
|
for (let i = 0; i < languages.length; i++) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user