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

Nesting t calls causes unwanted key removal #1025

Open
adroste opened this issue Jul 27, 2024 · 0 comments
Open

Nesting t calls causes unwanted key removal #1025

adroste opened this issue Jul 27, 2024 · 0 comments

Comments

@adroste
Copy link

adroste commented Jul 27, 2024

🐛 Bug Report

Nesting t calls causes unwanted removal of keys

To Reproduce

const condition = true
t('test.outer', { subString: condition ? t('test.inner1') : t('test.inner2') })

The keys test.inner1 and test.inner2 will be removed from the translations file.

Expected behavior

Keys should not be removed.

Your Environment

  • runtime version: node 20
  • i18next-parser version: 9.0.1 (happens also in v8)
  • os: macos 14.3
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

1 participant