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

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

Open
skimaharvey opened this issue Mar 4, 2021 · 1 comment

Comments

@skimaharvey
Copy link

skimaharvey commented Mar 4, 2021

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
Copy link
Contributor

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! 💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants