- Issue created by @thtas
On a multi-language site, if you embed a twitter block on a page (in my case via layout builder) you will always see the English version of widget regardless of the user language context as negotiated by Drupal.
1. Set up a site with two languages (e.g. English and Greek)
2. Embed the twitter block on a page with default settings for language (empty).
3. The widget shows in English when content language has switched to Greek.
I'm not sure if this a problem in the way that core renders link render arrays or if this need to be solved in this module.
Perhaps core should always be adding a link attribute to links by default? Anyway, my fix here is just to add the lang attribute from the current language unless specified by the user in the block config.
Active
3.0
Code