mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-18 19:11:28 +03:00
When locale 'en' is selected, no translation is retrieved
This commit is contained in:
@@ -13,7 +13,7 @@ if (environment.production) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const locale = localStorage.getItem('locale');
|
const locale = localStorage.getItem('locale');
|
||||||
if (locale) {
|
if (locale && locale !== 'en') {
|
||||||
getTranslations(`./assets/i18n/messages.${locale}.json`).then(
|
getTranslations(`./assets/i18n/messages.${locale}.json`).then(
|
||||||
(data: ParsedTranslationBundle) => {
|
(data: ParsedTranslationBundle) => {
|
||||||
loadTranslations(data as any);
|
loadTranslations(data as any);
|
||||||
@@ -31,7 +31,6 @@ if (locale) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log('no locale');
|
|
||||||
import('./app/app.module').then(module => {
|
import('./app/app.module').then(module => {
|
||||||
platformBrowserDynamic()
|
platformBrowserDynamic()
|
||||||
.bootstrapModule(module.AppModule)
|
.bootstrapModule(module.AppModule)
|
||||||
|
|||||||
Reference in New Issue
Block a user