mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Add support for Finnish and Chinese Simplified.
This commit is contained in:
parent
1b98e077b0
commit
ec73c964df
1 changed files with 7 additions and 3 deletions
|
@ -253,6 +253,7 @@ export default {
|
||||||
{ code: "es", name: "Español" },
|
{ code: "es", name: "Español" },
|
||||||
{ code: "en", name: "English" },
|
{ code: "en", name: "English" },
|
||||||
{ code: "fa", name: "فارسی" },
|
{ code: "fa", name: "فارسی" },
|
||||||
|
{ code: "fi", name: "Suomi" },
|
||||||
{ code: "fr", name: "français" },
|
{ code: "fr", name: "français" },
|
||||||
{ code: "hr", name: "Hrvatski" },
|
{ code: "hr", name: "Hrvatski" },
|
||||||
{ code: "it", name: "italiano" },
|
{ code: "it", name: "italiano" },
|
||||||
|
@ -262,6 +263,7 @@ export default {
|
||||||
{ code: "pl", name: "polski" },
|
{ code: "pl", name: "polski" },
|
||||||
{ code: "tr", name: "Türkçe" },
|
{ code: "tr", name: "Türkçe" },
|
||||||
{ code: "zh_Hant", name: "繁體中文" },
|
{ code: "zh_Hant", name: "繁體中文" },
|
||||||
|
{ code: "zh_Hans", name: "简体中文" },
|
||||||
],
|
],
|
||||||
enabledCodecs: ["av1", "vp9", "avc"],
|
enabledCodecs: ["av1", "vp9", "avc"],
|
||||||
disableLBRY: false,
|
disableLBRY: false,
|
||||||
|
@ -356,9 +358,11 @@ export default {
|
||||||
this.proxyLBRY = this.getPreferenceBoolean("proxyLBRY", false);
|
this.proxyLBRY = this.getPreferenceBoolean("proxyLBRY", false);
|
||||||
if (this.selectedLanguage != "en") {
|
if (this.selectedLanguage != "en") {
|
||||||
try {
|
try {
|
||||||
this.CountryMap = await import("@/utils/CountryMaps/" + this.selectedLanguage + ".json").then(val => {
|
this.CountryMap = await import("@/utils/CountryMaps/" + this.selectedLanguage + ".json").then(
|
||||||
this.countryMap = val;
|
val => {
|
||||||
});
|
this.countryMap = val;
|
||||||
|
},
|
||||||
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Countries not translated into " + this.selectedLanguage);
|
console.error("Countries not translated into " + this.selectedLanguage);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue