How to Translate WCAG 2

Overview

Web Content Accessibility Guidelines (WCAG) 2.1/2.2 are currently available in more than 14 languages!

There are 8 main steps to create a new translation:

  1. Get the source files from the w3c/wcag/  repository
  2. Translate the source files
  3. Preview your changes
  4. Export to HTML
  5. Edit the resulting HTML file to complete the translation
  6. Translate the text added by fixup.js
  7. Check your translation
  8. Deliver the final files to W3C

Step 1: Get the source files

  1. Clone the w3c/wcag  repository (you can fork  it first)
  2. Checkout the following tag to get the relevant source files:

Step 2: Translate the source files

The repository contains numerous folders and files. Only some of them are relevant to your WCAG translation.

Translate user-oriented content in:

Follow these guidelines:

Step 3: Preview your changes

  1. Serve the repository root folder from step 1 using a local server.

    The use of a local server is required by ReSpec to insert the success criteria and glossary term content into the guidelines/index.html file. You can use any local HTTP server.

  2. Once the server is running, navigate to the guidelines/index.html file in your browser. Allow the script to compile and format the content.

  3. If your document has any ReSpec errors or warnings, they will show up at the top of the page, next to the “ReSpec” button.

    • Check and resolve any ReSpec errors.
    • The original document may contain some warnings. Make sure you do not introduce new ones.

Step 4: Export the document to HTML

  1. Click the “ReSpec” button in the top right corner.
  2. Click the “Export…” button.
  3. Select the “HTML” option.
  4. Rename the exported HTML file to index.html.

Step 5: Edit the resulting HTML file

Add the translation header

At the very start of your body element, add a translation header, based on the provided boilerplate.

Translate all text in this disclaimer, except the original title and the reference to the Lead Translation Organization (LTO) at the top.

Make further edits

Follow these guidelines:

Step 6: Translate the text added by fixup.js

The fixup.js file adds links that allow users to jump to the table of contents and to collapse/expand the sidebar.

Download fixup.js  and translate the following terms:

Step 7: Check your translation thoroughly

Properly check your files before submission to W3C.

In particular, make sure that:

Step 8: Deliver the final files to W3C

In conformance with step 6.3 of the Policy for Authorized W3C Translations , deliver the following files to W3C for publication:

Make sure these are valid (X)HTML documents with UTF-8 encoding.

Back to Top