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
We work on a website template for clients in North America and Brazil. Their websites (which are built off of this template) are in their native language (English and Portuguese respectively).
We know the locale/language of each website at build time; our clients don't want or need a language switcher.
SEO and fast page loads is a primary concern. Therefore, we want to build and ship the website with only one language as a static website using next export.
We don't want the plugin to decide for us. We accept the risk of HOC collisions, dynamic paths, etc. and will deal with that on our own.
What do you think is the correct solution to this problem?
We want a simple config option in i18n.js to force the loader to use getStaticProps for loading the language files so that we can export a static website. Something like:
module.exports={
...,forceStatic: true}
Otherwise, we have to add getStaticProps to EVERY page of our template and all client pages which is ugly and costly.
Are you willing to submit a pull request to implement this change?
What version of this package are you using?
2.02
What problem do you want to solve?
We work on a website template for clients in North America and Brazil. Their websites (which are built off of this template) are in their native language (English and Portuguese respectively).
We know the locale/language of each website at build time; our clients don't want or need a language switcher.
SEO and fast page loads is a primary concern. Therefore, we want to build and ship the website with only one language as a static website using next export.
We don't want the plugin to decide for us. We accept the risk of HOC collisions, dynamic paths, etc. and will deal with that on our own.
What do you think is the correct solution to this problem?
We want a simple config option in
i18n.js
to force the loader to usegetStaticProps
for loading the language files so that we can export a static website. Something like:Otherwise, we have to add
getStaticProps
to EVERY page of our template and all client pages which is ugly and costly.Are you willing to submit a pull request to implement this change?
Yes, if @aralroca approves.
PR at #18
The text was updated successfully, but these errors were encountered: