i18n-polyfill icon indicating copy to clipboard operation
i18n-polyfill copied to clipboard

ngx-extractor fails on invocations with dynamic initializers

Open ANeumann82 opened this issue 5 years ago • 0 comments

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.

ANeumann82 avatar Sep 21 '18 08:09 ANeumann82