ngx-translate is not working in Angular 9
See original GitHub issueCurrent behavior
ngx-translate is not working in Angular 9
Expected behavior
it has to work
How do you think that we should fix this?
Minimal reproduction of the problem with instructions
if i use like below it won’t work:
<e-column field="ImplantationDate" headerText="{{ a | translate}}"> </e-column>
The headerText value is not translated
sample download this sample and run below commands
npm i ng serve sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/angualr-ngx-1485466251
Environment
“@ngx-translate/core”: “12.1.2"”, “@ngx-translate/http-loader”: “4.0.0”, Angular version: 9.0.6
Browser:
- Chrome (desktop) version XX
- Chrome (Android) version XX
- Chrome (iOS) version XX
- Firefox version XX
- Safari (desktop) version XX
- Safari (iOS) version XX
- IE version XX
- Edge version XX
For Tooling issues:
- Node version: XX <!-- run
node --version
--> - Platform:
Others:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:13
- Comments:26
Top Results From Across the Web
Angular translation not working with angular 9 - Stack Overflow
I was using the translation service in a component of custom.module.ts and in custom.module.ts file I was doing TranslateModule.
Read more >How to translate your Angular app with ngx-translate
1. Add ngx-translate to your Angular application 2. Set up the TranslateService in your app.module.ts 3. Create your main language translation file (in...
Read more >How to translate your Angular 6 app with ngx-translate
This tutorial uses the Angular 6 together with ngx-translate 10. A version of the tutorial covering Angular 7 is available from here: How...
Read more >How To Use ngx-translate with Angular - DigitalOcean
Create a brand new Angular application and add some dependencies. Open your terminal and use @angular/cli to create a new project: ng new ......
Read more >Angular I18n: How to Internationalize with ngx-translate | Phrase
The ngx-translate library allows us to change the language of the application at runtime without reloading the whole app. However, Angular ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
in app.component import { TranslateService, LangChangeEvent } from ‘@ngx-translate/core’;
constructor( private platform: Platform, private splashScreen: SplashScreen, private statusBar: StatusBar, public translate: TranslateService, ) { this.initializeApp(); this.translate.setDefaultLang(‘en’); // this is solve my problem with translate }
Working fine for me on Angular 9. Do you added localize? See: https://angular.io/guide/migration-localize