ashhitch / gatsby-plugin-wpgraphql-seo

Gatsby Plugin to Bring Yoast Seo Data into Gatsby via WpGraphQL.
MIT License
13 stars 8 forks source link

Lang attribute on multilanguage sites #6

Open MartinConde opened 3 years ago

MartinConde commented 3 years ago

I have a gatsby site with 2 languages (using wpml) and somehow the seo component only ever returns the first language in schema { inLanguage }.

Also it doesn't seem to add the lang attribute onto the html tag. Am I overlooking something here or do I need to add that one separately using React Helmet?

ashhitch commented 3 years ago

@MartinConde did you manage to resolve this ( know it was a little while ago!) If not do you have an graphql endpoint I could check?