• Documentation
  • Translation Quality
  • Setting Translation Checks

Setting Translation Checks

Translations missing key elements such as a variable or link could potentially break your website or app. To help prevent this, Transifex automatically checks every translation against a set of conditions. Whenever a condition is not met, e.g. an HTML element is missing, the translator will be shown either a warning or error message telling them what needs to be fixed. Translators can still save a translation when there's a warning. But if there's an error, they'll need to address the issue before they'll be able to save the translation.

Customizing translation checks

Each file format has a set of translation checks on by default. You can change whether a failed check results in an error or warning, or turn off a check all together.

To customize translation checks:

  • Go to your Organization Settings from the main navigation.

  • Click on Translation Checks in the left menu.translation-checks-overview.png#asset:80

  • Click on a file format to see the checks available for that file format.

  • Click on the toggles next to each rule to change whether a check should show a warning, error message, or be off.

    translation-checks.png#asset:809

  • Hit Save to confirm the changes.

You can always restore the translation check settings by clicking the Set to default checks next to the Save button.

Checking for custom variables

If you use a custom variable in your code, you can have Transifex check and make sure it’s left untouched in the translation. This is done by adding a custom check for a file format, and specifying the characters your custom variable starts and ends with.

To do this:

  • Head to the Translation Checks settings page.

  • Click on the file format you want to add a custom check for.

  • Click Set up placeholder delimiters.

  • In the popup, specify the characters your custom variable starts and ends with.translation-checks_placeholder_delimiter

  • Click Save to finish adding this check. 

Like the default checks, you can change whether a failed check results in an error or warning, or turn it off all together.