Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of internationalization library: Which one to use? #12

Open
iduuck opened this issue Sep 26, 2020 · 3 comments
Open

Usage of internationalization library: Which one to use? #12

iduuck opened this issue Sep 26, 2020 · 3 comments
Labels
discussion question Further information is requested

Comments

@iduuck
Copy link
Member

iduuck commented Sep 26, 2020

I am thinking about adding a internationalization library for supporting i18n right from the start.

Canditates

react-intl

Pros:

  • Easy to set up
  • Easy to integrate with locize.

Cons:

  • No support for getStaticProps.

next-i18next

Pros:

  • Easy to set up
  • Easy to integrate with locize

Cons:

  • No support for getStaticProps, yet.
  • Need to setup multiple packages (react-i18next, next-i18next, ...)

Rolling our own implementation

Pros:

  • Full flexibility.

Cons:

  • Can be a pain in the ass.


Ahead of this, we might need to discuss, if we are going with implementing the library into the boilerplate directly or implementing a page into the documentation on how to easily set up the library (See #13).

@iduuck iduuck added question Further information is requested discussion labels Sep 26, 2020
@visualcookie
Copy link
Contributor

@iduuck We should also add next-translate. It's waaay easier to set this one up and also comes with hooks.

Only caveat of using next-translate would be browser detection. I've only found a hacky way of checking the navigatior.language and navigation.userLanguage and according to those it should utilize next/router for the redirect to the users browser language.

But maybe we could write a not so hacky "workaround" / hook to use right inside the _app.tsx.

Thus I would say we should focus on next-i18next and next-translate and basically provide ONLY a guide on how to set this up the "right" way.

@iduuck
Copy link
Member Author

iduuck commented Oct 1, 2020

Also voting for next-translate!

@chmtt
Copy link

chmtt commented Nov 5, 2020

Since i made some bad experiences with next-i18next i vote for next-translate, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants