We have a multilingual site, which supports language detection based on a mixture of the
accept-language request header ( and user profile preferences.
I am currently trying to improve OpenGraph support we have and ran into a bit of an issue when it came to multilingual aspects. Basically, if the site defaults to French, for example, but a user pastes the link into a platform (Facebook, Twitter, Discord, Slack, etc) that is in another language, per user choice, then the preview is in French, rather than that other language.
I did a quick test and non of the sites I tried passed in an
accept-language header, so we are left returning the site in the default language, which my not be ideal for the end-user.
We do also have the following tags:
<link rel="canonical" href="https://www.example.com/en/" /> <link rel="alternate" href="https://www.example.com/fr/" hreflang="fr" />
The site root, is where the language detection happens and it redirects to the appropriate section.
Do any of these sites support multilingual OpenGraph and if so, how should my site be presenting the headers to benefit from this?