question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ngx-translate is not working in Angular 9

See original GitHub issue

Current 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:open
  • Created 4 years ago
  • Reactions:13
  • Comments:26

github_iconTop GitHub Comments

8reactions
MohamedAbdElmawgoudcommented, Nov 22, 2020

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 }

6reactions
KBroichhausencommented, Mar 24, 2020

Working fine for me on Angular 9. Do you added localize? See: https://angular.io/guide/migration-localize

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found