Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Internationalization

Kevin Miller edited this page Jun 17, 2014 · 1 revision

Tests have a title and description are found in the tests YAML file, which adheres to a YAML format. You can use a service like YAML Lint to check that the file is in the correct format. For each test there are english strings prefixed by a two-letter ISO code. For example:

aAdjacentWithSameResourceShouldBeCombined:
  type: "custom"
  testability: 1
  title:
    en: "Adjacent links that point to the same location should be merged"
  description:
    en: "Because many users of screen-readers use links to navigate the page, providing two links right next to eachother that points to the same location can be confusing. Try combining the links."
  guidelines:
  ... more things

To do a translation, add another line of text under title or description with the prefix of the language. Make sure they are indented the same as the prior line. The title element for this test:

  title:
    en: "Adjacent links that point to the same location should be merged"

would become:

  title:
    en: "Adjacent links that point to the same location should be merged"
    es: "Enlaces adyacentes que apuntan en la misma ubicación deberían fusionarse"