Gatsby: Gatsby i18n with gatsby-plugin-i18n

Created on 6 Nov 2018  路  7Comments  路  Source: gatsbyjs/gatsby

Hello.
https://www.gatsbyjs.org/packages/gatsby-plugin-i18n/?=i18 this link not provide information about this plugin and don't have link to repository https://github.com/angeloocana/gatsby-plugin-i18n

Also, this repository not maintained now and example https://github.com/angeloocana/gatsby-plugin-i18n/tree/master/packages/gatsby-starter-default-i18n don't working with Gatbsy v2.

I found it difficult to find a working solution for internationalization with the support of adding a language key to a url link and I would like to make a fully working example for the community.

Also original post in blog https://www.gatsbyjs.org/blog/2017-10-17-building-i18n-with-gatsby/ and if you try to reproduce step by step, example won't working.

How can we improve getting started with i18n in Gatsby?

question or discussion

All 7 comments

@VladBlow unfortunately gatsby-plugin-i18n isn't compatible with Gatsby v2 at the moment as it has not been updated after the launch of Gatsby v2.

@angeloocana any plans of updating it to support v2?

@VladBlow if you are in a hurry you can try this:

  1. Download the plugin locally and add it in a plugins/ folder at the root of your project.
  2. Replace boundActionCreators with actions
  3. cd plugins/gatsby-plugin-i18n && npm install
  4. Add the plugin in your gatsby-config.js if it's not already there

@kakadiadarpan gatsby-plugin-i18n is compatible with Gatsby v2, I can setup it.

@kmorf thank you for the consultation, but I set up this plugin, and it works right now. I just wanna to helped the community solve the same problem.

@kmorf thanks, hopefully I will find time to make a plugin. What exactly you mean for That's the spirit? The spirit of open source?

Yes 馃憤 馃憤

Was this page helpful?
0 / 5 - 0 ratings