mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 04:25:08 +00:00
(AppComponent) Added a note about the Angular Translate module
This commit is contained in:
parent
0331db4384
commit
a52b1f7687
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user