i18n-polyfill
i18n-polyfill copied to clipboard
ngx-extractor fails on invocations with dynamic initializers
I have a couple of dynamic translations that are not supposed to be extracted ( as the values are coming from the backend anyway), and the extractor fails to ignore them.
this.i18n({id: 'somefancyprefix' + keyFromBackend, value: 'SomeValueAsWeJustNeedThem' + keyFromBackend});
If i were to use just a variable as a parameter, or a constant, the extractor works ok, but with dynamic initalizers it fails.