Open Shiwa opened 3 months ago
When extracting translation from a Trans component with a react key prop, this key is used in place of the i18nKey.
Trans
key
i18nKey
Running i18next-parser on the following tsx code
<SomeComponent texts={[ <Trans ns="settings" key={0} i18nKey="my.i18n.key"> <span className="font-bold">Lorem Ipsumā¦</span> </Trans>, ]} />
The etracted key should be my.i18n.key but is instead {0}
my.i18n.key
{0}
{ "{0}": "<0>Lorem Ipsumā¦</0> " }
š Bug Report
When extracting translation from a
Trans
component with a reactkey
prop, this key is used in place of thei18nKey
.To Reproduce
Running i18next-parser on the following tsx code
Expected behavior
The etracted key should be
my.i18n.key
but is instead{0}
Your Environment