react-i18next: Bug with dangerouslySetInnerHTML
Hi,
thank you with react-i18next
, but i have a problem with the dangerouslySetInnerHTML
-prop…
For Example, inside my common.json
file, i have this data:
{
"Text": "This is a text with a <a href='/example' target='_blank'>Link</a>"
}
Inside a page, i use this common
-file like this:
<p dangerouslySetInnerHTML={{ __html: t('Text', { interpolation: { escapeValue: false } }) }} />
When the page first loads… i see the text in the right language. If a reload the page again, the text will be shown in the default/fallback-language… How can i solve the issue?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (8 by maintainers)
@jamuhl many thanks for your help and your time… 👍Always looks good now, also the Footer Text in both languages 😉