1. cliveportman
  2. /code
  3. /checklist-for-multi-language-sites

Checklist for multi-language sites

Make sure the language of the content is specified with the opening HTML tag:

<html lang="en-gb">

Set an alternate page for the translated content:

<link rel="alternate" hreflang="fr" href="http://cliveportman.co.uk/fr/" />

Refer to the different translated pages within the sitemap:

<url>
    <loc>http://clive.localhost/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="http://clive.localhost/en"/>
    <xhtml:link rel="alternate" hreflang="fr" href="http://clive.localhost/"/>
</url>

Note that in the sitemap the alternate links are needed for the default language as well.