We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
parseTransFromString
The parseTransFromString output the nested tags twice each in the Trans component.
parser.parseTransFromString('<Trans i18nKey="foo"><Text>{{email}}</Text>foobar</Trans>', { component: 'Trans', i18nKey: 'i18nKey'}, function(key, options){ console.log(key, options) })
This code output the following.
foo { defaultValue: '<0><0>{{email}}</0></0>foobar', fallbackKey: undefined }
It should output the following.
foo { defaultValue: '<0>{{email}}</0>foobar', fallbackKey: undefined }
The text was updated successfully, but these errors were encountered:
nodesToString
Published v4.0.0
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
🐛 Bug Report
The
parseTransFromString
output the nested tags twice each in the Trans component.To Reproduce
This code output the following.
Expected behavior
It should output the following.
Your Environment
The text was updated successfully, but these errors were encountered: