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

Fix performance for compiler for very large files #112

Closed khan-saim closed 10 months ago

khan-saim commented 11 months ago

There was an existing PR to improve performance but there was a build failure due to formatting and there was no update after. Since we are also running into this issue, I wanted to put up the fix for it. If this is against etiquette my apologies in advance!

This is based on the same fix proposed in issue #110.

lephyrus commented 10 months ago

Thanks, @khan-saim. 👍 I wanted to fix #111 myself but then... forgot.