You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to internationalize my app with next-18next and I have a list of locales: locales: ['en', 'es-ES', 'es-MX']
I have set my browser language to Mexican Spanish, yet I keep getting the Spain's Spanish translation. When I run: console.log(router.locale) I get es, when it should be es-MX.
Surely nextjs should be able to pick up the language regions as well.
Thansk in advance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I am trying to internationalize my app with next-18next and I have a list of locales:
locales: ['en', 'es-ES', 'es-MX']
I have set my browser language to Mexican Spanish, yet I keep getting the Spain's Spanish translation. When I run:
console.log(router.locale)
I getes
, when it should bees-MX
.Surely nextjs should be able to pick up the language regions as well.
Thansk in advance.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions