Top "React-i18next" questions

Questions concerning React implementation of i18next library.

react-intl vs react-i18next for ReactJS internationalization (i18n)

I need to build a multilanguage application using ReactJS. The application needs a custom dictionary for different languages as well …

javascript reactjs internationalization react-intl react-i18next
How do I mock react-i18next and i18n.js in jest?

package.json "moduleNameMapper": { "i18next": "<rootDir>/__mocks__/i18nextMock.js" } i18n.js import i18n from 'i18…

reactjs jestjs i18next react-i18next
react-i18next: interpolation of link in HTML tag in the middle of the text

I am using react, i18next and react-i18next. I would like to have some translatable text with HTML link …

javascript reactjs i18next react-i18next
How to fix 'no fallback UI was specified' in react i18next using hooks

I am trying to implement i18next in my react component using the useTranslation hook, but it keeps saying: Uncaught …

reactjs react-hooks react-i18next react-suspense
Error: I18nextWithTranslation suspended while rendering, but no fallback UI was specified

I am trying to get I18N working using react-i18next. I am following the steps provided here as close …

reactjs react-i18next
i18n.changeLanguage is not a function

This is my code. import React, { Suspense } from 'react'; import { useTranslation } from 'react-i18next'; function Page() { const { t, i18n } = …

javascript reactjs typescript react-i18next