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] a wrong md locale node field is created when file extension is .md #157

Closed
twodft opened this issue Feb 14, 2022 · 2 comments

Comments

@twodft
Copy link

twodft commented Feb 14, 2022

Hello, I'm using both .md and .mdx file extension for my blog posts. And while using gatsby-theme-i18n,
I found it generate a wrong locale and isDefault node fields when my blog file extension is setting to .md, the graphql result is like this,

        {
          "node": {
            "fields": {
              "isDefault": false,
              "locale": "md"
            }
          }
        },

after change my blog markdown file extension to .mdx, then I get the correct result.

{
          "node": {
            "fields": {
              "isDefault": true,
              "locale": "en"
            }
          }
        },
@olivier-lacroix
Copy link

@twodft , this would be fixed by #130

if a maintainer merges it that is…

@twodft
Copy link
Author

twodft commented Mar 8, 2022

fixed by #130

@twodft twodft closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants