- πΊπΈUnited States briantschu West Orange, NJ
I'm attaching a patch that should cause Facebook embeds to match the language of the page the content is embedded on.
I used some code that oscarotero shared in an Issue in the Embed repository to provide an 'Accept-Language' header as a starting point:
$embed = new Embed(); $embed->getCrawler()->addDefaultHeaders(['Accept-Language' => 'it-IT']);
This patch uses the Language Manager service to get the content language and pass the value in the header.