Blitz: [Feature Request]: Add i18n

Created on 26 Apr 2020  路  8Comments  路  Source: blitz-js/blitz

What do you want and why?

i18n is immensely needed in any web __framework__.

Possible implementation(s)

The Nextjs community are yet to agree on the best possible way to implement i18n while keeping SSR / SSG / Serverless working as expected.

Can this be solved by Blitz?

Additional context

https://github.com/zeit/next.js/discussions/10651

kindiscussion kinfeature-change scopcore statublocked

Most helpful comment

Awesome, thank you @waptik.

So it appears very likely that the Next.js team is working on an official i18n solution (source and source). I think we should wait and see that before doing something ourselves.

Only bummer is they haven't given a timeline.

All 8 comments

I've never implemented i18n myself, but I agree Blitz should solve this.

So I'd love to hear proposals or ideas on how we should do this!!

So after going through all possible solutions/examples, with-i18n-rosetta looks like the best possible solution at the moment (demo) . No difficult setup nor extra build steps.
Besides, you can also use your locales as packages and easily import them in your projects like how Uppy does it.

Awesome, thank you @waptik.

So it appears very likely that the Next.js team is working on an official i18n solution (source and source). I think we should wait and see that before doing something ourselves.

Only bummer is they haven't given a timeline.

@flybayer 馃槺 wow, that's great news 馃構. I think an official solution is the best way to go, especially if it's coming from the authors.
So it's worth waiting 馃槉
Thanks for sharing the good news

A quick update on this: next-i18next now supports serverless i18n from their beta branch. The implementation relies on path rewrites, which are currently behind an experimental flag but will be GA on the next stable release.

The Next.js RFC on i18n Routing has just been posted!

any news on this, now that NextJS 10 is used in Blitz and includes official support for i18n routing?

@jan-wilhelm no news! Now that that's released, it's up to y'all to decide if there's more stuff that we should add on top of that in blitz.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LoriKarikari picture LoriKarikari  路  4Comments

svobik7 picture svobik7  路  3Comments

flybayer picture flybayer  路  3Comments

ganeshmani picture ganeshmani  路  4Comments

netheril96 picture netheril96  路  4Comments