Bug: keys used in template contexts not detected
joel31415 opened this issue · 0 comments
joel31415 commented
Is there an existing issue for this?
- I have searched the existing issues
Is this a regression?
No
Current behavior
A translation key is not detect when used by inside of an Angular template context.
Example:
<ng-container
*ngTemplateOutlet="test; context: { text: t('template-text') }"
></ng-container>
> transloco-keys-manager find
...
┌───────────┬──────────────┬─────────────────┐
│ File Name │ Missing Keys │ Extra Keys │
├───────────┼──────────────┼─────────────────┤
│ en │ -- │ 'template-text' │
└───────────┴──────────────┴─────────────────┘
Expected behavior
The key manager recognizes the usage of the key and does not report it as an extra key
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/ngneat-transloco-zachh9?file=src%2Fapp%2Fhome%2Fhome.component.html
Transloco Config
I don't know how to open a terminal in stackblitz, but after downloading and installing, `npm run i18n:find` can be used to reproduce the issue.
Debug Logs
No response
Please provide the environment you discovered this bug in
Transloco: 2.19.3
Transloco Keys Manager: 3.2.0
Angular: 11.0.4
Node: v14.17.4
Package Manager: npm 6.14.14
OS: linux
Additional context
No response
I would like to make a pull request for this bug
No