Transloco: Bug: messageformat not transpiled when selecting an object with selectTranslate

Created on 27 Aug 2019  路  15Comments  路  Source: ngneat/transloco

See console of

https://stackblitz.com/edit/angular-aa3pmd?file=src/app/app.component.ts

@NetanelBasal

...btw I have a feeling that Translation[] is a valid return type as well selectTranslate<T = string | Translation | string[]>

fixed next release

Most helpful comment

All 15 comments

Ok, it wasn't exactly working this way in ngx-translate either, if you used messageformat compiler, it returned a function under the bar property, which you would pass the params to

https://stackblitz.com/edit/github-idytfc-ayovbm?file=src/app/app.component.ts

can we perhaps do this better somehow?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gernsdorfer picture gernsdorfer  路  4Comments

nulee picture nulee  路  6Comments

philjones88 picture philjones88  路  6Comments

mickz18 picture mickz18  路  5Comments

FallenRiteMonk picture FallenRiteMonk  路  8Comments