Topic 27 · International

Development and accessibility by language

Encoding, the lang attribute, text direction, per-language caching: this topic checks that each language version is technically sound and served at the right URL, without relying on cookies.

Priority
Important
Applies to
Depends on your site: multilingual site
Practical guides
16 written out of 16
0/16 done

Free, no account: your progress is saved in this browser.

Download this topic (PDF) 4 pages · 89 KB

Where to start

Three checks with a strong effect, doable before the rest.

  1. 27.01 Set html lang on each page Intermediate · 1 to 3 h
  2. 27.09 Test SSR/SSG for all languages Intermediate · 2 to 6 h
  3. 27.14 Test without cookies Easy · 1 to 2 h

The 16 checks of this topic

Click a check to read its guide. Tick the box once it is verified on your site.

Who
Difficulty

1Declare language and encoding

0/5 done
  1. 27.01
    Set html lang on each page

    Make the html tag's lang attribute follow the language of each URL on WordPress, Shopify, Drupal, Laravel, Next.js or Nuxt, with no cookie or JavaScript.

    Who: Developer

    Intermediate 1 to 3 h
  2. 27.02
    Mark passages in another language

    Find quotations, titles and language names written in another language and mark them up with lang in WordPress, Drupal, Shopify, Laravel or Next.js.

    Who: Developer Writer

    Easy 1 to 3 h
  3. 27.03
    Use UTF-8

    Declare and serve UTF-8 everywhere: meta tag, Content-Type header, files, utf8mb4 database, on Apache, Nginx, IIS, Cloudflare, AWS, WordPress or Laravel.

    Who: Developer System administrator

    Intermediate 30 min to 1 day
  4. 27.04
    Handle accents and non-Latin scripts

    Handle accents, Cyrillic, Arabic or Chinese in URLs, slugs, redirects, site search and capitalization on Apache, Nginx, Cloudflare, WordPress or Laravel.

    Who: Developer

    Intermediate 2 h to 2 days
  5. 27.05
    Handle dir=rtl if needed

    Serve Arabic, Hebrew or Persian with dir=rtl, CSS logical properties and mirrored icons on WordPress, Shopify, PrestaShop, Laravel or Next.js.

    Who: Developer

    Advanced 1 to 5 days

2Test display and keyboard

0/3 done
  1. 27.06
    Check fonts for each language

    Check that your fonts contain every character of each language, load the right subset and define per-language fallback fonts in CSS.

    Who: Developer

    Intermediate 2 to 6 h
  2. 27.07
    Test for text overflow

    Find buttons, menus and headings that overflow or get cut off in longer languages, using pseudo-localization, a detection script and Playwright.

    Who: Developer

    Intermediate 2 h to 1 day
  3. 27.16
    Test keyboard navigation of the language switcher

    Test the language switcher with the keyboard (Tab, Enter, Escape, visible focus), then fix it with an accessible disclosure button, on WordPress, Shopify or Next.js.

    Who: Developer

    Easy 1 to 3 h

3Test rendering and performance

0/3 done
  1. 27.08
    Test performance for each version

    Compare the LCP, INP, CLS and TTFB of each language version with PageSpeed Insights, Search Console, CrUX, WebPageTest and real-user monitoring by language.

    Who: Developer Marketing

    Intermediate 2 h, then monthly monitoring
  2. 27.09
    Test SSR/SSG for all languages

    Check that every language version is rendered on the server or prerendered at build time, with Next.js, Nuxt, Astro, WordPress, Shopify or Laravel.

    Who: Developer

    Intermediate 2 to 6 h
  3. 27.10
    Test multilingual dynamic routes

    Test the parameterized routes of each language (translated slugs, unknown codes, pagination) and fix them on Next.js, Nuxt, Laravel, Symfony or WordPress.

    Who: Developer

    Intermediate 2 to 6 h

4Serve the right language

0/5 done
  1. 27.11
    Check per-language cache handling

    Check that every cache (page, object, proxy, CDN, ISR) keeps languages apart and is purged per language, on Nginx, Varnish, Cloudflare, WordPress, Laravel or Next.js.

    Who: Developer System administrator

    Advanced 2 to 6 h
  2. 27.12
    Check the CDN and language variants

    Check that the CDN serves the same language at each URL from every country: geographic rules, cache keys, hosts and headers on Cloudflare, CloudFront, Vercel.

    Who: Developer System administrator

    Advanced 2 to 4 h
  3. 27.13
    Serve the right content at the requested URL

    Make sure a URL always returns the same language and content, whatever the cookie, browser language, IP address or crawler that requests it.

    Who: Developer

    Intermediate 2 to 4 h
  4. 27.14
    Test without cookies

    Browse and crawl each language version without cookies, like a crawler, to spot unreachable languages, redirect loops and blocked content.

    Who: Developer Marketing

    Easy 1 to 2 h
  5. 27.15
    Test without Accept-Language

    Test your multilingual site without an Accept-Language header, like Googlebot, and with empty or invalid values, then make language detection robust.

    Who: Developer

    Easy 1 to 2 h