mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-21 04:00:57 +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': {
|
||||
'name': 'Spanish; Castilian',
|
||||
'nativeName': 'español, castellano'
|
||||
'nativeName': 'español'
|
||||
},
|
||||
'su': {
|
||||
'name': 'Sundanese',
|
||||
|
||||
@@ -13,6 +13,9 @@ if (environment.production) {
|
||||
}
|
||||
|
||||
const locale = localStorage.getItem('locale');
|
||||
if (!locale) {
|
||||
localStorage.setItem('locale', 'en');
|
||||
}
|
||||
if (locale && locale !== 'en') {
|
||||
getTranslations(`./assets/i18n/messages.${locale}.json`).then(
|
||||
(data: ParsedTranslationBundle) => {
|
||||
|
||||
Reference in New Issue
Block a user