core icon indicating copy to clipboard operation
core copied to clipboard

New Angular 14 inject function does not use the translate service correctly.

Open stephentengpor opened this issue 1 year ago • 1 comments

Current behavior

When i use the "inject()" function for translateService, the this.translate.instant does not work correctly. Running the translate command does not detect translations when the translate script is run. https://codereacter.medium.com/why-angular-14s-new-inject-function-is-so-amazing-ac281e7148d1

    protected translate = inject(TranslateService);

This is especially true when i extend the service using the injection into a different component.

Expected behavior

Translate detection script should work as expected.

How do you think that we should fix this?

Translate script should account for injection function.

stephentengpor avatar May 15 '23 18:05 stephentengpor

having same issue ....

maneeq avatar Jun 01 '23 10:06 maneeq