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

BUG: TranslateMessageFormatCompiler breaks if translation value is null #97

Closed giacomo closed 9 months ago

giacomo commented 2 years ago

As example:

{
  "somekey”: {
       "desc": "translated desc",
       "some_other": null
  }
}

"some_other" Key should not break the loading of the translation-file, should consider to be an empty string.

Reproduction: https://stackblitz.com/edit/angular-ivy-aie8vp?file=src/app/app.component.html by changing null to an empty string in assets/de.json and en.json it works as expected

lephyrus commented 9 months ago

Closed by #115.