Agent Wranglers

LOC-7Optional

Keep names out of machine translation

Protect names, code and addresses from machine translation with translate="no".

How to do it

Add translate="no" to brand names, code, email addresses and street addresses. Mark text in another language as Mark foreign words says.

Examples

HTML example

<p>Write to <span translate="no">hello@example.com</span> or visit
<span translate="no">Example Studio, 1 Main Street</span>.</p>
<code translate="no">npm install</code>

How to check

A test finds translate="no" on every code element and every element that holds the brand name or an email address.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/localization/multilingual-websites/translate-attribute">Agent Wranglers localization playbook</a>. In code you write, add a comment next to it with the same link.