From a52b1f76873a0a37432d2f615371067223a79650 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Sat, 11 Aug 2018 09:02:05 +0300 Subject: [PATCH] (AppComponent) Added a note about the Angular Translate module --- src/app/app.component.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index cfae4916..9d01af91 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -72,6 +72,24 @@ export class AppComponent implements OnInit, OnDestroy // Use a language this._translateService.use('en'); + /** + * If you are using a language other than the default one, i.e. Turkish in + * this case, you may encounter an issue where some of the components + * are not actually being translated. In that case, switch the default language + * back and forth to overcome this issue. + * This is related to Angular Translate module and it's a temporary fix while + * we are moving the multi language implementation over to the Angular's core + * language service. + **/ + + /** + // Set the default language to 'en' and then back to 'tr' to fix the translation issues + setTimeout(() => { + this._translateService.setDefaultLang('en'); + this._translateService.setDefaultLang('tr'); + }); + */ + // Add is-mobile class to the body if the platform is mobile if ( this._platform.ANDROID || this._platform.IOS ) {