mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-17 08:41:28 +03:00
Updated spanish language string label to avoid confusion
Fixed bug where if no locale was set, it would *not* default to English
This commit is contained in:
@@ -594,7 +594,7 @@ export const isoLangs = {
|
|||||||
},
|
},
|
||||||
'es': {
|
'es': {
|
||||||
'name': 'Spanish; Castilian',
|
'name': 'Spanish; Castilian',
|
||||||
'nativeName': 'español, castellano'
|
'nativeName': 'español'
|
||||||
},
|
},
|
||||||
'su': {
|
'su': {
|
||||||
'name': 'Sundanese',
|
'name': 'Sundanese',
|
||||||
|
|||||||
@@ -13,6 +13,9 @@ if (environment.production) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const locale = localStorage.getItem('locale');
|
const locale = localStorage.getItem('locale');
|
||||||
|
if (!locale) {
|
||||||
|
localStorage.setItem('locale', 'en');
|
||||||
|
}
|
||||||
if (locale && locale !== 'en') {
|
if (locale && locale !== 'en') {
|
||||||
getTranslations(`./assets/i18n/messages.${locale}.json`).then(
|
getTranslations(`./assets/i18n/messages.${locale}.json`).then(
|
||||||
(data: ParsedTranslationBundle) => {
|
(data: ParsedTranslationBundle) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user