React-i18next: Re-render whole app after changeLanguage( lang )

Created on 16 Aug 2019  路  4Comments  路  Source: i18next/react-i18next

How do I manage to re-render whole app after changeLanguage ( lang ) using redux?

All 4 comments

In my app I am giving user an option to select language of user choice and I want to update whole app after user select the language.
So after updating language I am able to re-render that component but not the whole app, any solution by using redux?

wow...you're really not getting it...everything (component) that is either us useTranslation or withTranslation gets rerendered on languageChanged independent of being called from redux or whatever...

if you鈥檙e using the hook or the hoc etc... just do it like here: https://github.com/i18next/react-i18next/issues/921#issuecomment-521260428

import your i18next instance and call changeLanguage on you language selection...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jessidhia picture Jessidhia  路  4Comments

a-barbieri picture a-barbieri  路  4Comments

Flo-Slv picture Flo-Slv  路  4Comments

dawsbot picture dawsbot  路  4Comments

simoami picture simoami  路  3Comments