--- url: "https://www.w3.org/WAI/about/translating/wcag/" titulek: "How to Translate WCAG 2 | Web Accessibility Initiative (WAI) | W3C" h1: "How to Translate WCAG 2" popis: "Technical instructions on translating WCAG" jazyk: "en" kanonicka: "https://www.w3.org/WAI/about/translating/wcag/" drobecky: ["Home", "About W3C WAI", "Translate", "Translating WCAG"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 01:11:21" znaku: 5834 slov: 799 kodovani: "windows-1250" sha256: "d5f899688a93bd98516ea7c9d68e71dad73c10d7f9a96d5fe0ff961303115160" --- ## Overview Web Content Accessibility Guidelines (WCAG) 2.1/2.2 are currently [available in more than 14 languages](/WAI/standards-guidelines/wcag/translations/)! There are 6 main steps to create a new translation: 1. **Get the source files** from [`w3c/wcag/`Â](https://github.com/w3c/wcag/) repository 2. **Translate WCAG source files** 3. **Export in HTML** 4. **Edit the HTML files** to complete the translation 5. **Check your translation** 6. **Deliver the final files to W3C** ## Step 1: Get the source files 1. Clone [`w3c/wcag`Â](https://github.com/w3c/wcag/) repository (you can [forkÂ](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo) it first) 2. Checkout the following tag to get the relevant source files: - [`WCAG22-20241212` tagÂ](https://github.com/w3c/wcag/tree/WCAG22-20241212) to translate WCAG 2.2 (12 December 2024 version) - [`WCAG21-20250506` tagÂ](https://github.com/w3c/wcag/tree/WCAG21-20250506) to translate WCAG 2.1 (6 May 2025 version) ## Step 2: Translate WCAG source files The repository contains numerous folders and files. Only some of them are relevant to your WCAG translation. Translate user-oriented content in: - `guidelines/index.html` - All files in `guidelines/sc/` folder and subfolders - All files in `guidelines/terms/` folder and subfolders - `guidelines/input-purposes.html` - `guidelines/relative-luminance.html` - `guidelines/respect-config.js` : translate Editors list. - All files in `acknowledgements/` folder Make sure to follow these guidelines: - Update `lang` and `xml:lang` attributes in `index.html` and `relative-luminance.html` . Use the appropriate “language tag” from the [Language Subtag RegistryÂ](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) - Do not add or edit CSS. - Do not translate `id` s. - Add `lang="en"` where needed. - Follow the guidelines of the [W3C Internationalization ActivityÂ](https://www.w3.org/International/) : for example, the proper usage of language tags, encoding declarations, handling bidirectional text, etc. ## Step 3: Preview your changes and export in HTML To preview your changes, open the `index.html` file in a modern browser, on a local server. Without a server, the success criteria and glossary terms will not be included. Allow the script to compile and format the content. 1. If your document has “ReSpec” errors or warnings, they will shop up at the top of the page, next to the “ReSpec Menu” link. - Check and resolve (potential) “ReSpec Errors”. - Check “ReSpec Warnings”. The original document may contain some warnings. Make sure you do not introduce new ones. 2. Export in HTML using ReSpec: - Activate the “Respec Menu” link in the top right corner - Choose “Export…”, then the “HTML” option. ## Step 4: Edit the resulting HTML file and complete the translation Rename the exported HTML file to `index.html` and make the following changes. At the very start of your `body` element, add a [translation header, based on the provided boilerplate](https://www.w3.org/2005/02/TranslationPolicy#Disclamier). The text in this disclaimer must be in the target language, except for the original title and the reference to the Lead Translation Organization (LTO) at the top. ### Make some edits - Translate the `.head` section - In each `dfn-panel` , translate “Permalink” and “Referenced in:” - Next to each Success Criterion, translate “Understanding” and “How to Meet” - Change the ID of the [“5. Conformance”](https://www.w3.org/TR/WCAG22/#conformance) `
` to “ `conformance` ”. Make sure to follow these guidelines: - Do not add or edit CSS. - Do not translate `id` s. - Add `lang="en"` where needed. - Follow the guidelines of the [W3C Internationalization Activity](https://www.w3.org/International/) : for example, the proper usage of language tags, encoding declarations, handling bidirectional text, etc. ### 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`Â](https://www.w3.org/scripts/TR/2021/fixup.js) and translate the following terms: - “Collapse Sidebar” - “Pop Out Sidebar” - “Jump to Table of Contents” ## Step 5: Check your translation thoroughly Please properly check your files before submission to W3C. In particular, make sure that: - All links are valid. You can use [W3C Link Checker](https://validator.w3.org/checklink) - HTML is valid. You can use [W3C Markup Validation Service](https://validator.w3.org/) - CSS is valid. You can use [W3C CSS Validation Service](https://jigsaw.w3.org/css-validator/) - Pages are internationalization-friendly. You can use [W3C Internationalization Checker](https://validator.w3.org/i18n-checker/) - All relevant content has been properly translated - All `id` s are in English; that is, they have not been translated. If you have followed How to Translate WCAG 2 – Get the source files , this should be fine. - `lang` and `xml:lang` attributes of the `` tag are correct - `lang` attribute has been used when relevant (especially when some text has been kept in English) - The links/anchors of the original and translated versions match. - “Jump to table of contents”, “Collapse sidebar” and “Hide sidebar” have been translated. - There is no code showing in the rendered page. - No custom CSS has been added. - (Authorized translation) An errata has been created and is hosted on the Lead Translation Organization (LTO)’s website. ## Step 6: Deliver the final files to W3C In conformance with step 6.3 of the [Policy for Authorized W3C TranslationsÂ](https://www.w3.org/2005/02/TranslationPolicy.html), deliver the following files to W3C for publication: - `index.html` - `relative-luminance.html` - `fixup.js` Make sure these are valid (X)HTML documents with UTF-8 encoding. Back to Top