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

Falling back to a translation that has html in it causes a crash #199

Open
StevePavlin opened this issue Feb 22, 2020 · 0 comments
Open

Comments

@StevePavlin
Copy link

StevePavlin commented Feb 22, 2020

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Falling back to a translation with html in it with and the renderInnerHtml option set to true causes a crash (defaultTranslation option sent to onMissingTranslation is the original translated jsx element).

Reproduced here: https://codesandbox.io/s/cool-shadow-6rpur

What is the expected behavior?
Falling back to a translation with html in it with and the renderInnerHtml option set to true should render the original translation (defaultTranslation should be the original translated string instead of a jsx element)

Which versions of react and react-localize-redux are you using?
React v16.12.0
react-localize-redux: v3.5.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