Tool

Auto translate="no" Brand & Code Protector

Lock brand names, product strings, SKUs, emails, and code so machine translation leaves them unchanged. Attributes, scripts, and styles stay intact.

100% client-side: Your HTML and brand glossaries never leave your browser.

0 B
0 B
Reference

translate="no" and class="notranslate" are not the same signal

Machine translation rewrites a product name, a package name, or a model code in ordinary prose. HTML can carry two signals that ask a translator to leave a phrase alone. Publishing only one of them still loses terms in some tools.

The HTML5 translate attribute is the standard control. A value of no marks the element and its descendants. A value of yes, an empty value, or a bare translate attribute opts that element back in. Chrome built in page translation, Safari translation, Google Translate, and DeepL HTML handling all honor that attribute.

class="notranslate" is a long standing Google convention, not an HTML translation control. Google Translate and Chrome skip that class. Safari does not, and DeepL documents the attribute rather than the class. The default output emits both.

Where each signal is honored

SignalHTML5ChromeSafariGoogle TranslateDeepL
translate="no"Standard. Descendants inherit it.Honored.Honored.Honored.Keeps marked text.
class="notranslate"Not a standard control.Honored.Not used.Honored.Not documented.
Both togetherValid HTML. The attribute keeps its meaning.Both signals apply.The attribute still applies.Both signals apply.The attribute still applies.

Why a blind replace breaks attributes

A global search and replace on the raw file cannot tell a brand in a sentence from the same letters inside a tag. Replacing Apple inside href="/apple" drops markup into the attribute and breaks the link. The same pass corrupts title="Next.js" when the protected term is Next.js.

This protector reads tags separately from the text between them and wraps matches only in that text. Attribute values stay intact. Script, style, comments, and similar blocks are copied unchanged. Code, pre, kbd, samp, and var receive the chosen attributes on the tag, so the inner text is not wrapped again.

FAQ

Can translate="yes" inside translate="no" be translated?

Yes. A child with translate="yes", an empty value, or a bare translate attribute is an explicit opt in, and this protector wraps glossary terms there again. A child that also carries class="notranslate" stays protected.

Does translate="no" freeze alt, title, and placeholder?

translate="no" on an element asks a tool to leave its alt, title, and placeholder alone. This protector never writes inside an attribute, because a span there would break the quotes.

Do the extra span tags hurt SEO?

The wrapper is an inline span around text that stays visible, and search engines index that text. The span does not hide the brand. Use it to keep a name stable, not to repeat keywords.

How does the protector avoid double wrapping?

Text already inside translate="no" or class="notranslate" is copied unchanged and counted as skipped. A second pass does not add another span.

Does the HTML leave the browser?

No. Reading tags, wrapping text, copying, and the download all run locally. The HTML and the term list stay on the computer, with a two megabyte limit, and nothing is uploaded.

See HTML translate="no": when and how to use it and which HTML attributes should be translated. Clean a docs export with the Notion HTML export fixer, and keep merge tags stable with Email Tag Guard. More utilities sit in the tools hub. Static HTML can be translated with HTML Translate.