Andreas Loew

Results 90 comments of Andreas Loew

I think this solution is incomplete: It does not work for - e.g. `instant()` or directives. A more complete solution might be to use a `MissingTranslationHandler` instead. E.g. we could...

It's already implemented and documented, see https://ngx-translate.org/recipes/fix-translation-loading-glitches/#solution-3-custom-missingtranslationhandler-for-empty-strings

It does not replace the page. Options 1 and 2 are valid solutions to the problem, too - maybe even better than displaying an empty text - which event might...

https://github.com/CodeAndWeb/ngx-translate/commit/f1d455a39d79d5a9fd7743ded0f89fcafcf64fbd

Fixed in @ngx-translate/core@16

Currently there's no way to override it. I've removed it from the parser because the idea of the parser is about parsing/interpolating the translation message. The getValue() method was misplaced...

That is indeed not accessible at the moment. The probably best way to do that currently would be in the loader by merging both objects into a single one, where...

4562aefbbd0b47757212ab72ff082d796ad38f9f - I've made all methods in the default parser protected so that you can override them - I've isolated the replacement in the interpolation function into a separate function...

ae090206813b8ba749e5e70d5657bf436beacf70 This is still a work in progress. `getValue()` is now available in the TranslateStore and can be overwritten with custom functionality. This should allow the customizations @JulienBier wanted.