Skip to main content

Handling Sensitive Data

Depending on the content of your site, there may be areas that display confidential information such as credit card details, or personal information. The Smartling Whiteout class (sl_whiteout) allows you to prevent the capture of sensitive date by the Global Delivery Network (GDN) and the display to linguists working with in the Smartling dashboard. You will still be able to display this content to end-users visiting your translated site.

Content within the Whiteout class is not stored anywhere in Smartling’s infrastructure.

Applying "sl_whiteout" to your site

If your site contains sensitive data, you can add the "sl_whiteout" class to your source code to ensure this data is handled properly.

In the following code:

Screen_Shot_2018-01-31_at_5.55.12_PM.png

Translators will see the following context when working in Smartling:

Screen_Shot_2018-01-31_at_6.26.53_PM.png

However, if you add the "sl_whiteout" class to your code:

Screen_Shot_2018-01-31_at_5.55.35_PM.png

Translators will see the obscured content inside the whiteout class instead, and it will not appear on the string they are working on:

Screen_Shot_2018-01-31_at_6.05.19_PM.png

Understanding notranslate vs. sl_whiteout

You can exclude content from translation in the GDN by applying a notranslate class to HTML elements on your site. This prevents the capture and translation of specific content like product names, numbers, or proper nouns. See Exclude Content from Translation with the GDN.
​
​When you apply the notranslate class:

  • ✅ The text will be "placeholderized" in the Smartling dashboard, meaning it will appear grayed out and will not be translated.
    ​
    ​

    no-translate.png
  • ❌ The text is NOT masked in the visual context uploaded to Smartling.
    ​
    ​

    no-translate-context.png

When you apply the sl_whiteout class:

  • ✅ Masks the text in the visual context.
    ​
    ​

    sl_whiteout_context.png
  • ❌ Does NOT mask or "placeholderize" the text in the Smartling dashboard.
    ​
    ​

    sl-whiteout.png

Using both classes together

  • ✅ The string will be masked and "placeholderized" in the Smartling dashboard and masked in the visual context.
    ​
    ​

    both-classes-dashboard.png
    both-classes-context.png
Did this answer your question?