You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a terminal and run yarn i18next-scanner. You should see the following
sandbox@sse-sandbox-81pqi4:/sandbox$ yarn i18next-scanner
yarn run v1.22.17
warning package.json: No license field
$ i18next-scanner
some.key
some.key
some.key
Done in 0.21s.
So there is only one Trans component, the console.log should output once.
sandbox@sse-sandbox-81pqi4:/sandbox$ yarn i18next-scanner
yarn run v1.22.17
warning package.json: No license field
$ i18next-scanner
some.key
Done in 0.21s.
Your Environment
node v16.13.1
i18next 21.6.14
i18next-scanner 3.1.0
os: Mac 12.2.1 (21D62) CPU M1
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
The function passed to parseTransFromString is called multiple times with even though there is only one component.
To Reproduce
https://codesandbox.io/s/autumn-wildflower-81pqi4?file=/package.json
Create a terminal and run
yarn i18next-scanner
. You should see the followingThe following code can also be reproduced.
Expected behavior
So there is only one
Trans
component, theconsole.log
should output once.Your Environment
The text was updated successfully, but these errors were encountered: