If TranslateService was injected using the inject function without an explicit type annotation for the property, the translations were not getting properly extracted. For example:
export class MyComponent {
private translateService = inject(TranslateService);
public test() {
this.translateService.instant('Hello World');
}
}
If
TranslateService
was injected using theinject
function without an explicit type annotation for the property, the translations were not getting properly extracted. For example: