Closed just214 closed 4 years ago
Thanks for raising this. This is now added by bd0add9.
Add the language
prop to your GatsbySeo
component once the release is made available.
Great thanks for the quick response!
from what I tested, this "language" prop is not working on current version. it's not being added to at all.
any clue if this is taken out by any chance?
Perhaps open a new issue?
Can confirm that the language
prop is not being set as lang
(or as anything).
This issue specifically targets the addition, and is so new that I'm wondering what the value of opening a new issue is...if the original implementation was flawed (it was never confirmed to be working by anyone after it was added in bd0add9).
not "language" and not "lang".
I have to use <Helmet/>
separately.
<Helmet htmlAttributes={{ lang, }} />
Same here. Based on the source, language
should be setting the HTML lang
value, and it isn’t.
Okay, I'll reopen. I'd be happy for someone else to take a look as I probably won't be able to for a few days.
@ifiokjr Could it be that the GatsbySeo component doesn't destructure the language prop and pass it to BaseSeo? I would PR but I honestly have no idea how to test gatsby plugins without installing them via yarn/npm.
:tada: This issue has been resolved in version 1.6.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Thanks for this plugin, it's great. I don't see a prop for the
lang
attribute, which is resulting in a Lighthouse audit failure. Am I missing something or is this something you would consider adding if not? Thanks!