(AppComponent) Added a note about the Angular Translate module

This commit is contained in:
Sercan Yemen 2018-08-11 09:02:05 +03:00
parent 0331db4384
commit a52b1f7687

View File

@ -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 )
{