core
core copied to clipboard
New Angular 14 inject function does not use the translate service correctly.
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.
having same issue ....