microapps / gatsby-plugin-react-i18next

Easily translate your Gatsby website into multiple languages
MIT License
122 stars 72 forks source link

Add support for Gatsby V5 #163

Closed gdams closed 1 year ago

gdams commented 2 years ago

Now that Gatsby 5.0.0 is available, it would be good if this plugin could be updated to avoid the following warning:

warn Plugin gatsby-plugin-react-i18next is not compatible with your gatsby version 5.0.0 - It requires gatsby@^4.16.0

Thanks, let me know if I can do anything to help?

tenisjavier commented 2 years ago

I used it on my website and it broke with Gatsby 5. We need this update 🙏

madfcat commented 2 years ago

Can you update or should I downgrade the gatsby version? Any alternatives btw?

wederchr commented 2 years ago

I was able to get it working with Gatsby 5 by using the --legacy-peer-deps option. However, I am only using basic i18next features at the moment.

gdams commented 1 year ago

I've raised a PR to add support here (https://github.com/microapps/gatsby-plugin-react-i18next/pull/166).

I'll see if @jimmyn is interested in accepting it. If not then I'll consider forking the npm module.

For now, if people want to test my changes please update their package.json file to use:

{
  "dependencies": {
    "gatsby-plugin-react-i18next": "gdams/gatsby-plugin-react-i18next#gatsby5"
  }
}

Any feedback is most welcome