Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

201
Vistas
How to run 2 instances of ReactI18Next on the same app?

I am trying to run 2 instances of React-i18Next on the same application. I want parts of my application to be translated with instance1 and parts of the application with instance2.

I've read about createInstance and i18nextprovider which I should use to create and run multiple instances. However, whatever I try I cannot seem to get it to work. I've also read this thread on github multiple times.

I have also created a codesandbox with my problem here: codesandbox demo.

Whatever I try, I cannot seem to get this to work and I am now even wondering if this is even possible with react-i18Next? Could someone take a look at my codesandbox example and tell me if it is even possible what I am trying to do and if so, what I am doing wrong?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Would the following work?

const { t, i18n } = useTranslation();
const { t: t2, i18n: i18n2: } = useTranslation();

The way the second useTranslation()'s variables are destructured rename the default variables so they can be used however you like to seperately.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda