react-localize-redux
react-localize-redux copied to clipboard
Falling back to a translation that has html in it causes a crash
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