We are trying to list some of our products on AppSource of Microsoft. They require an all English experience for listing. However, our forums are bilingual and I want to include a link to the English category on the AppSource listing.
We have enabled “set locale from accept language header” to allow people from India to see the secondary content in English (“Last topics” instead of “Laatste nieuwsberichten” - Dutch).
However, when testing with Postman and Accept-Language switching from “nl” to “en”, the generated HTML is incorrect:
With en
:
<!DOCTYPE html>
<html lang="nl">
<head>
With nl
:
<!DOCTYPE html>
<html lang="nl">
<head>
The actual labels are correctly changed from Dutch to English, but the html tag still lists the language as Dutch instead of the language of the content.
A test was also run from Locale-Adaptive Pages Testing Tool | TechnicalSEO.com with identical outcome:
It would be good for indexability when the lang attribute could be set either from the accept-language or derived from the category for Google. Please remember that Google crawls from US typically with Accept-Language set.