Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

419
Visualizações
Next Js context parameter from getStaticProps returns "{ locales: undefined, locale: undefined, defaultLocale: undefined }"

I am simply trying to use the context parameter from Next Js's getStaticProps function, but when I console log it, I get "{ locales: undefined, locale: undefined, defaultLocale: undefined }".

I use getStaticProps inside the pages folder as I am supposed to but I still get that weird object on all pages.

I would really appreciate any help as I was not able to find any information.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

It's totally normal, it's part of Next.js i18n routing

  • locale contains the active locale (if enabled).
  • locales contains all supported locales (if enabled).
  • defaultLocale contains the configured default locale (if enabled).

Don't worry about it if you are not using internationalisation.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda