Open adroste opened 3 months ago
Nesting t calls causes unwanted removal of keys
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.
test.inner1
test.inner2
Keys should not be removed.
🐛 Bug Report
Nesting t calls causes unwanted removal of keys
To Reproduce
The keys
test.inner1
andtest.inner2
will be removed from the translations file.Expected behavior
Keys should not be removed.
Your Environment