ngx-translate / core

The internationalization (i18n) library for Angular
MIT License
4.51k stars 577 forks source link

Make it easier to use custom matcher in TranslateParser #885

Open Brinken90 opened 6 years ago

Brinken90 commented 6 years ago

Current behavior

Our translations are in the format of Hello {0} so we're in the need to a custom parser to support a custom regex.

Expected behavior

A suggested change is to update this property in the TranslateDefaultParser so that it can be overridden somehow - without the need for separately maintaining an almost identical parser.

What is the motivation / use case for changing the behavior?

To support simple variances of the regex matching.

ashutoshc8101 commented 3 years ago

@ocombe Is this feature desired? I can work on it.