microapps / gatsby-plugin-react-i18next

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

Compatibility with Gatsby Version 5.3 #168

Open sfemewhy opened 1 year ago

sfemewhy commented 1 year ago

I'm receiving the following error. Does the plug-in support Gatsby 5.3? ERROR #85923 GRAPHQL.VALIDATION, There was an error in your GraphQL query: Cannot query field "allLocale" on type "Query".

Here's my config:

{ resolve: gatsby-source-filesystem, options: { name: locales, path: ${__dirname}/src/locale/, }, }, { resolve: gatsby-plugin-react-i18next, options: { localeJsonSourceName: "locale", languages: [en, de], defaultLanguage: en, generateDefaultLanguagePage: true, redirect: true, siteUrl: https://localhost:8000/, // to be overridden i18nextOptions: { defaultNS: "common", debug: false, keySeparator: false, nsSeparator: false, },

    excludes: ["/**/404", "/**/404.html"],
    pages: [
      {
        matchPath: "/:lang?/(.*)",
        getLanguageFromPath: true,
        languages: ["en", "de"],
      },
    ],
  },
},

timowevel1 commented 2 months ago

Same problem here

davideoliveri commented 1 month ago

I am encountering the same issue with Gatsby 5.13.17 and gatsby-plugin-react-i18next 3.0.1.