Next-js-Boilerplate icon indicating copy to clipboard operation
Next-js-Boilerplate copied to clipboard

Next 18 n or i18n

Open ShintaroNippon opened this issue 4 years ago • 3 comments

Hi there. Thanks by the boilerplate. It is possible to add multi language? Next 18 n or i18n And add redux or I should I use context API?

Thanks in advance Best Shintaro

ShintaroNippon avatar Nov 28 '21 16:11 ShintaroNippon

Hi @ShintaroNippon,

It's something I want to add the multi language.

Now, most of time I suggest context API instead of Redux. But, it's totally based on you context, sometime you need to continue using Redux.

Thanks.

ixartz avatar Nov 28 '21 21:11 ixartz

Hi @ixartz,

In my opinion we must add Multi Language infrastructure as base feature in this project so this project will be useful for people. And I want contribute to this project with this feature infrastructure..

Thanks.

resatyildiz avatar May 06 '22 07:05 resatyildiz

Totally agree with @resatyildiz, it's definitively useful to add it as a base feature. I'm currently focusing on the testing part by adding Jest, Cypress, etc. As an indie developer, my resources are limited. So, all help are welcome for multi language.

ixartz avatar May 06 '22 15:05 ixartz

May I ask you that how this is going now? Was PR #39 not merged because the next-i18next breaks next export? Sorry for asking such a basic question.

comverser avatar Nov 04 '22 13:11 comverser

I think the boilerplate should support all features from Next.js. At that time, implementing next-i18next will break next export. Totally open to any suggestion without breaking any Next.js features.

ixartz avatar Nov 04 '22 14:11 ixartz

I see some library doing the opposite: implementing i18n in next export but breaking other features.

ixartz avatar Nov 04 '22 14:11 ixartz

I'm using ParaglideJS as an i18n solution in my personal project, maybe you could see if it's suitable to be included in this boilerplate.

Documentation: https://inlang.com/m/gerre34r/library-inlang-paraglideJs How to integrate into App Router: https://inlang.com/g/wxcebbig/guide-lorissigrist-useParaglideJsWithNextjsAppRouter Page Router: https://inlang.com/g/uxohikde/guide-lorissigrist-useParaglideJsWithNextjsPagesRouter

sunxyw avatar Dec 03 '23 07:12 sunxyw

I'm actively working to add i18n into the boilerplate using next-intl: https://next-intl-docs.vercel.app

Type-safe, support page and app router, i18n routing, etc. I should release the i18n support in the upcoming weeks.

ixartz avatar Dec 03 '23 12:12 ixartz

Finally, i18n is now official supported in Next.js Boilerplate: https://github.com/ixartz/Next-js-Boilerplate/pull/196

Thank you for all your support and feedback.

Also, if you need a translation software, please check out Crowdin: https://l.crowdin.com/next-js They are now an official sponsor of the project.

ixartz avatar Dec 08 '23 16:12 ixartz