lephyrus / ngx-translate-messageformat-compiler

Advanced pluralization (and more) for ngx-translate, using standard ICU syntax which is compiled with the help of messageformat.js.
MIT License
93 stars 30 forks source link

fixes docu for proper forwarding of the translate params when using the pipe #44

Closed craisp closed 4 years ago

craisp commented 5 years ago

When using the pipe this {{'things' | translate:"{ count: 2 }"}} fails, because the translateParams-object is forwarded as a string.

lephyrus commented 5 years ago

Sorry, I totally missed your PR. Interestingly, both ways of writing the pipe parameter (quoted object or plain object) seem to work for me. Not that I understand why...

lephyrus commented 4 years ago

I'm closing this because I couldn't reproduce the problem this solves and lack of feedback.