Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

2.2K
Views
react-i18next:: Deberá pasar una instancia de i18next usando initReactI18next

react-i18next:: deberá pasar una instancia de i18next usando initReactI18next

Recientemente agregué el paquete y obtuve este error. He seguido todos los pasos hasta donde sé.

Uso Next.js con el paquete next-i18next , que generalmente se inicializa automáticamente.

https://github.com/m2vi/downloader

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

actualizar siguiente-i18next.config.js

 module.exports = { i18n: { defaultLocale: 'en', locales: ['en', 'de', 'fr'], }, react: { useSuspense: false },//this line };
over 4 years ago · Santiago Trujillo Report

0

De los documentos next-i18next :

Luego agregamos serverSideTranslation a getStaticProps o getServerSideProps (según su caso) en nuestros componentes de nivel de página.

Lo que significa que deberá agregarserverSideTranslation a las páginas que necesitan traducciones.


Por ejemplo, en su archivo pages/d/[tab]/index :

 import Head from 'next/head'; import { Input } from '../../../components/Input'; import YouTube from '../../../components/youtube/Main'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; const index = () => { return ( <> <Head> <title>YouTube</title> </Head> <YouTube /> </> ); }; export const getServerSideProps = async ({ locale }) => ({ props: { ...(await serverSideTranslations(locale, ['common'])) } }); export default index;

Luego, más abajo en su componente Main , puede acceder a la traducción de la documentation usando:

 t('pages.documentation')
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!