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 29 forks source link

BUG: TranslateMessageFormatCompiler breaks if translation value is null #97

Closed giacomo closed 7 months ago

giacomo commented 1 year 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 7 months ago

Closed by #115.