Loading packages/shop-mobile-ionic/src/app/app.component.ts +2 −1 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ export class AppComponent { 'he-IL', 'ru-RU', 'es-ES', 'fr-FR', ]); _translateService.setDefaultLang('en-US'); Loading @@ -52,7 +53,7 @@ export class AppComponent { _translateService.use(this.defaultLanguage); } else { _translateService.use( browserLang.match(/en-US|bg-BG|he-HE|ru-RU|es-ES/) browserLang.match(/en-US|bg-BG|he-HE|ru-RU|es-ES|fr-FR/) ? browserLang : 'en-US' ); Loading packages/shop-mobile-ionic/src/app/services/store.service.ts +11 −2 Original line number Diff line number Diff line Loading @@ -247,13 +247,22 @@ export class Store { private async _initLanguage() { const lang = (localStorage.getItem('_language') as ILanguage) || null; const langs = { he: 'he-IL', ru: 'ru-RU', bg: 'bg-BG', en: 'en-US' }; // This 4 lines is here because of bug => without this lines, lang translation doesn't work. const langs = { he: 'he-IL', ru: 'ru-RU', bg: 'bg-BG', en: 'en-US', es: 'es-ES', fr: 'fr-FR', }; // This 6 lines is here because of bug => without this lines, lang translation doesn't work. // (The bug is unknown) this._translateService.use(langs.he); this._translateService.use(langs.ru); this._translateService.use(langs.bg); this._translateService.use(langs.en); this._translateService.use(langs.es); this._translateService.use(langs.fr); this._translateService.resetLang(langs.en); if (lang) { Loading packages/shop-mobile-ionic/src/assets/i18n/bg-BG.json +2 −0 Original line number Diff line number Diff line Loading @@ -256,6 +256,8 @@ "HEBREW": "Иврит", "RUSSIAN": "Руски", "BULGARIAN": "Български", "SPANISH": "испански", "FRENCH": "Френски", "SELECT": "Изберете", "LOCATION_NOTES": "Бележки за местоположението", "ENTER_NOTES_HERE": "Въведете бележки тук" Loading packages/shop-mobile-ionic/src/assets/i18n/en-US.json +1 −0 Original line number Diff line number Diff line Loading @@ -258,6 +258,7 @@ "RUSSIAN": "Russian", "BULGARIAN": "Bulgarian", "SPANISH": "Spanish", "FRENCH": "French", "SELECT": "Select", "LOCATION_NOTES": "Location Notes", "ENTER_NOTES_HERE": "Enter notes here" Loading packages/shop-mobile-ionic/src/assets/i18n/es-ES.json +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ "RUSSIAN": "Ruso", "BULGARIAN": "Búlgaro", "SPANISH": "Español", "FRENCH": "Francés", "SELECT": "Seleccione", "LANGUAGE": { "ID": "es-ES", Loading Loading
packages/shop-mobile-ionic/src/app/app.component.ts +2 −1 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ export class AppComponent { 'he-IL', 'ru-RU', 'es-ES', 'fr-FR', ]); _translateService.setDefaultLang('en-US'); Loading @@ -52,7 +53,7 @@ export class AppComponent { _translateService.use(this.defaultLanguage); } else { _translateService.use( browserLang.match(/en-US|bg-BG|he-HE|ru-RU|es-ES/) browserLang.match(/en-US|bg-BG|he-HE|ru-RU|es-ES|fr-FR/) ? browserLang : 'en-US' ); Loading
packages/shop-mobile-ionic/src/app/services/store.service.ts +11 −2 Original line number Diff line number Diff line Loading @@ -247,13 +247,22 @@ export class Store { private async _initLanguage() { const lang = (localStorage.getItem('_language') as ILanguage) || null; const langs = { he: 'he-IL', ru: 'ru-RU', bg: 'bg-BG', en: 'en-US' }; // This 4 lines is here because of bug => without this lines, lang translation doesn't work. const langs = { he: 'he-IL', ru: 'ru-RU', bg: 'bg-BG', en: 'en-US', es: 'es-ES', fr: 'fr-FR', }; // This 6 lines is here because of bug => without this lines, lang translation doesn't work. // (The bug is unknown) this._translateService.use(langs.he); this._translateService.use(langs.ru); this._translateService.use(langs.bg); this._translateService.use(langs.en); this._translateService.use(langs.es); this._translateService.use(langs.fr); this._translateService.resetLang(langs.en); if (lang) { Loading
packages/shop-mobile-ionic/src/assets/i18n/bg-BG.json +2 −0 Original line number Diff line number Diff line Loading @@ -256,6 +256,8 @@ "HEBREW": "Иврит", "RUSSIAN": "Руски", "BULGARIAN": "Български", "SPANISH": "испански", "FRENCH": "Френски", "SELECT": "Изберете", "LOCATION_NOTES": "Бележки за местоположението", "ENTER_NOTES_HERE": "Въведете бележки тук" Loading
packages/shop-mobile-ionic/src/assets/i18n/en-US.json +1 −0 Original line number Diff line number Diff line Loading @@ -258,6 +258,7 @@ "RUSSIAN": "Russian", "BULGARIAN": "Bulgarian", "SPANISH": "Spanish", "FRENCH": "French", "SELECT": "Select", "LOCATION_NOTES": "Location Notes", "ENTER_NOTES_HERE": "Enter notes here" Loading
packages/shop-mobile-ionic/src/assets/i18n/es-ES.json +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ "RUSSIAN": "Ruso", "BULGARIAN": "Búlgaro", "SPANISH": "Español", "FRENCH": "Francés", "SELECT": "Seleccione", "LANGUAGE": { "ID": "es-ES", Loading