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.

angular translate function in nga.filed().label() in listview.filters() is nor working.

See original GitHub issue

Hi, I found that the code ,listView().filters([nga.field('sn').label('{{"order.sn" | translate}}')]), cannot work properly. image

In the listview.fields([nga.field(‘sn’).label(‘{{“order.sn” | translate}}’)]), it works well. How can i fix the issue.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hobywhancommented, Jun 22, 2016

I don’t know how your system works, but what I do is : getting the $translate in the run and create my entities and fields of entities with the variables I need.

  .run(function($rootScope, $translate, RightsService, Config) {
    'ngInject';
    loadEntities(nga, appInstance, $translate, modules, RightsService, Config);
0reactions
aakashbathlacommented, Sep 6, 2016

@wujunbin

my issue got resolved, actually i was using the older version of ng-admin

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular translate filter in ternary operator - Stack Overflow
I think if you wrap the ternary operator into () , it will work. ... operators we have to use 'translate' directive instead...
Read more >
Listview picklist filter loses values on translation when ...
The filter show that values are chosen but when editing filter field no values are checked. Recreate. Create a custom picklist field with...
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 >
Work with translation files - Angular
Create a translation file for each languagelink​​ To create a translation file for a locale or language, complete the following actions. Extract the...
Read more >
How To Use ngx-translate with Angular - DigitalOcean
While Angular has some built-in i18n functionality, ngx-translate is a ... extra parameters to the new TranslateHttpLoader() constructor.
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