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

Integrate gatsby-theme-i18n and react library #484

Closed
1 of 3 tasks
pmelab opened this issue Nov 17, 2020 · 3 comments
Closed
1 of 3 tasks

Integrate gatsby-theme-i18n and react library #484

pmelab opened this issue Nov 17, 2020 · 3 comments
Assignees
Labels
gatsby Gatsby infrastructure and features.

Comments

@pmelab
Copy link
Contributor

pmelab commented Nov 17, 2020

  • add gatsby-theme-i18n to the @amazeelabs/gatsby-starter or @amazeelabs/gatsby-theme-core
  • choose a react translation library and integrate it too
  • contribute patch to gatsby-theme-i18n that allows to enforce languages prefix for default language
@pmelab pmelab added the gatsby Gatsby infrastructure and features. label Nov 17, 2020
@pmelab
Copy link
Contributor Author

pmelab commented Feb 26, 2021

The default prefix has been resolved: gatsbyjs/themes#75

@pmelab
Copy link
Contributor Author

pmelab commented Feb 26, 2021

We mostly used i18next. In a recent prototype I used react-intl which turned out to be less feature-rich, but more straightforward. We are more on the CMS/Website end of the spectrum and don't have a lot of need for App-centric features. We should do a more detailed investigation on what fits our needs:

@pmelab
Copy link
Contributor Author

pmelab commented Jul 9, 2021

We decided to go with react-intl and not using gatsby-theme-i18n since it interferes with pages that are automatically created from the CMS. Directly controlling creation of pages is more straightforward.

@pmelab pmelab closed this as completed Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gatsby Gatsby infrastructure and features.
Projects
None yet
Development

No branches or pull requests

3 participants