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.

not display text (ngxtranslate)

See original GitHub issue

When I insert text in option as {{‘key’ | translate}} and refresh page, translations disappear

AND

when change language text in option not change

https://github.com/ngx-translate/core << module translation

    <ng-select #resetReferenceType="ngModel" class="custom" placeholder="{{'sort.all' | translate}}" [clearable]="false" [markFirst]="true"
      [searchable]="false" [(ngModel)]="interactionTypeId" (add)="changeInteractionType($event)" bindLabel="label" bindValue="id">
      <ng-option [value]="'ALL'"> {{'sort.all' | translate}}</ng-option>
      <ng-option [value]="'OPEN'"> {{'sort.open' | translate}}</ng-option>
      <ng-option [value]="'CLOSED'"> {{'sort.close' | translate}}</ng-option>
    </ng-select>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
SrgGscommented, Jun 28, 2018

http://sergio07.vot.pl/ > live

https://github.com/SrgGs/example > repo clean only translate and ng select

0reactions
andzejswcommented, Jun 26, 2019

Only way of getting this around i think is pipe creation. I don’t like page reload as solution, cause don’t want to make multiple unnecessary requests.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ngx-translate does not show translated text - Stack Overflow
this.translate.get('home.menu', {value: 'Hey !'}).
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 >
Applying markup to translations in Angular applications (the ...
Supporting translated text with markup in Angular applications is challenging. A proper solution is presented in this article.
Read more >
Configuring ngx-translate to load at startup in Angular
The problem is that ngx-translate lazyloads translations. It doesn't matter when you need to translate a message or a component, ...
Read more >
Making Your App Ready for Translations
If a translation is not available in the user's language, the English file is used by default. In this tutorial we'll show how...
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