Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trans component can't be parsed if boolean props exist. #240

Closed
geewoo94 opened this issue Jan 13, 2023 · 1 comment
Closed

Trans component can't be parsed if boolean props exist. #240

geewoo94 opened this issue Jan 13, 2023 · 1 comment

Comments

@geewoo94
Copy link
Contributor

🐛 Bug Report

Trans component can't be parsed if boolean props exist.

To Reproduce

// This is not parsed
<Trans
  i18nKey="some key"
  shouldUnescape
/>

// This way is ok
<Trans
  i18nKey="some key"
  shouldUnescape={true}
/>

Expected behavior

Should be parsed correctly.

Your Environment

  • runtime version: node v16.16.0
  • i18next version: "^21.6.11"
  • i18next-scanner version: "^4.1.0"
  • os: Mac
@cheton
Copy link
Member

cheton commented Jan 17, 2023

Fixed in 4.1.1

@cheton cheton closed this as completed Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants