Discover projects built with Intlayer
Explore other projects that use Intlayer for their internationalisation.
Technical analysis of internationalisation best practices.
lang attribute on the <html> tag declares the primary language of the page. This helps search engines and browsers understand the content language.dir attribute on the <html> tag specifies the text directionality of the content. This is essential for languages that are written right-to-left (RTL).ltr (left-to-right), rtl (right-to-left), or auto.x-default hreflang tag. This tag specifies a default/fallback page for users whose language preferences don't match any specific hreflang./en/, /fr/). This is crucial for proper language routing.robots.txt file is a text file that tells search engine crawlers which pages or sections of your website they can or cannot access.robots.txt but have no equivalent locale-specific versions. This can indicate incomplete internationalization./admin/ is disallowed but there's no /en/admin/, /fr/admin/, etc., it may suggest the site structure doesn't consistently use locale prefixes.sitemap.xml file(s). Sitemaps help search engines discover and index all pages on your website.<xhtml:link> elements with alternate language versions. This tells search engines about all language variations of each page.x-default hreflang tag specifies a default page for users whose language isn't explicitly targeted. It's a fallback for international users.x-default to a language selector page or your most universal language version (often English).
Important: Every set of hreflang alternates should include an x-default.