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
How to fix `TypeError: Cannot read property 'type' of undefined` when testing i18next with Jest

I have a react project and I have included i18next = 15.0.4 and react-i18next = 10.2.0 dependencies. I have created a module …

typescript jestjs i18next react-i18next
How do I use react-i18next with a connected component

I would like to use react-i18next with my react-redux connected component and am not sure how to go about …

reactjs react-redux react-i18next
How to type check i18n dictionaries with TypeScript?

Is there a possibility to type check existing keys in react-i18next dictionaries? So that TS will warn you during …

typescript i18next react-i18next