Is there a way to build a static site with single locale #1046
Unanswered
abhisheksatre
asked this question in
Q&A
Replies: 2 comments
-
Using the i18n routing of Next.js is not possible right now. Probably you can do it by disabling the webpack plugin and instead of using i18n routing, implement a dynamic route |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you @aralroca for the prompt response. Would it be feasible to enforce the use of a specific locale during static build generation? My preference is to use the same locale for all routes rather than doing translations on a per-route basis. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to build a static Next.js site in the
mr-IN
locale. However, as per the Next.js documentation on Internationalization, it seems that i18n is not supported in static builds.I was wondering if there is a way to build a static site with a single locale (mr-IN). Is there any workaround or configuration change that can help me achieve this?
Any help or guidance in this regard would be greatly appreciated.
What version of this package are you using?
2.0.2
What operating system, Node.js, and npm version?
Mac OS, Node: v18.15.0, NPM: v9.5.0
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions