HTML tags in i18next translation files in React
Don’t put the HTML tags in the translation. It’s a bad idea anyway. Separation of concerns guys will be all whiny about it. Use the <Trans> component if react-i18next https://react.i18next.com/latest/trans-component Do like so: // Component.js <Trans>Welcome, <strong>User!</strong>, here’s your <strong>broom</strong></Trans> And the corresponding translation file: // your locales/starwars_en.js file translations: { “Welcome, <1>User!</1>, here’s your … Read more