Closed evertalbers closed 7 years ago
This is because the SEO extension gets the locale from the config file instead of the set locale, could you try replacing https://github.com/bobdenotter/seo/blob/master/templates/_metatags.twig#L7 with <meta property="og:locale" content="{{ htmllang()|replace({'-': '_'}) }}" />
?
Yep, it worked! Maybe you will want to add this to the translate docs somewhere?
Related, I also made a pull request for Bolt SEO Premium Extension™ https://github.com/bobdenotter/seo/pull/31
Hmm, I was hoping to get a more permanent (automatic) and proper (without twig replaces) fix in to the seo extension, @bobdenotter would you be okay with that?
@SahAssar Yes, sounds good. If you have a plan, I'm all for that. :-)
In that case you could also look at pre-filling title/meta fields from Translate-pages to SEO.
PR opened in the seo repo.
The two PRs have been merged. Does that mean, we can close this issue? @SahAssar was mentioning, its only a temporary fix..
It's good enough for me :)
I see that the default install of aforementioned plugin does not 'pick up' the locale, on a Dutch example it still says
<meta property="og:locale" content="en_GB" />