gatsbyjs / themes

This is a repo for Gatsby's official themes.
138 stars 77 forks source link

gatsby-theme-i18n not building all my pages even with prefixDefault set to true #105

Open skimaharvey opened 3 years ago

skimaharvey commented 3 years ago

Hello, I am facing this issue where when I do gatsby build and look at my sitemap, no pages with the 'fr' subfix are created. Here is a look at my gatsby-config.js file:

{
      resolve: "gatsby-theme-i18n",
      options: {
        defaultLang: "fr",
        prefixDefault: true,
        configPath: require.resolve("./i18n/config.json"),
      },
    },

and here is a look at my i18n/config.json file:

[
    {
      "code": "en",
      "hrefLang": "en-US",
      "name": "English",
      "localName": "English",
      "langDir": "ltr",
      "dateFormat": "MM/DD/YYYY"
    },
    {
      "code": "fr",
      "hrefLang": "fr-Fr",
      "name": "French",
      "localName": "Français",
      "langDir": "ltr",
      "dateFormat": "DD.MM.YYYY"
    },
    {
      "code": "ru",
      "hrefLang": "ru-Ru",
      "name": "Russian",
      "localName": "Russe",
      "langDir": "ltr",
      "dateFormat": "DD.MM.YYYY"
    }
  ]

The two other subfix ('en' and 'ru') are created.

LekoArts commented 3 years ago

Hi!

Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it.

If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look.

Thanks for using Gatsby! 💜