Skip to content

Excluding content from translation

Some text should stay as it is in every language: your brand and product names, code samples, people’s names, or text that’s deliberately in one language. Mark it with the standard HTML translate attribute and SwiftLingo leaves it alone.

Wrap the text in an inline element with translate="no":

<p>Welcome to <span translate="no">SwiftLingo</span>, the easiest way to translate your website.</p>

Put the attribute on a container. Everything inside it stays in the original language, including nested elements:

<div translate="no">
<h2>Legal notice</h2>
<p>This section must remain in English.</p>
</div>

SwiftLingo skips text inside elements marked translate="no" when it collects text to translate, so it doesn’t use any of your quota either. The original text is kept exactly as it is on the translated page.

Because translate is a web standard, browser translation tools such as Chrome’s respect it too.

To keep entire pages in the original language, use translation rules instead.