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

420
Views
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 answers
Answer question

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 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!