The translateglobal attribute is an enumerated attribute. It tells localization tools whether an element’s text nodes and translatable attribute values should be translated when the page is localized — or left unchanged.
Use translate="no" for brand names, product names, and code. Pair it with lang (language of the content) and related globals like dir and title.
Baseline · Widely available.
Not deprecated and not experimental. Browser recognition is widely available since about March 2023. Automatic translators such as Google Translate already respect translate="no".
Not CSS transform: translate().
The HTML attribute controls localization. The CSS function moves elements on screen — unrelated APIs that share a name.
Syntax
HTML Syntax
syntax.html
<element translate="yes|no|">
Empty string (translate="") or yes means translate. no means do not translate. In JavaScript, element.translate is a boolean IDL.
Values
Attribute Values
Only these enumerated values:
Value
Description
Try it
yes
Element should be translated when the page is localized
Wrap the fixed name in a <span> (or other element).
Set translate="no" on that element.
Surrounding text can still translate — only the marked node is protected.
Tools honor the hint when the page is localized automatically or by hand.
Example 2 — Sentence + Fixed Product Name
Keep a product name stable inside otherwise translatable copy.
HTML
<p lang="en">
Download
<strong translate="no">PixelKit</strong>
for Windows and macOS.
</p>
<p>
Example command:
<code translate="no">npm install pixelkit</code>
</p>
getAttribute("translate") returns the content attribute string.
element.translate is true when translation is allowed.
Assign the boolean to flip between yes and no in the DOM.
Still a hint — a translator must run for visible language change.
Edge Cases & Pitfalls
Most confusion is expecting the browser to rewrite text instantly, or mixing this up with CSS.
hint
It does not auto-rewrite the page
Marking content only guides translators. Until a tool runs, the on-screen language stays the same.
vs CSS
Not transform: translate()
CSS translate moves boxes. The HTML attribute is for localization only.
attributes
Covers translatable attributes too
Tools may also skip translating attribute values on elements marked no (for example some title / alt cases) — follow the HTML “translatable attributes” rules.
inherit
Nest carefully
A child can override a parent. Put no on the smallest element that must stay fixed.
lang
Still set lang
lang is for pronunciation and language identity. translate is only about whether to rewrite during localization.
Compatibility
Browser Support
translate is an HTML global attribute. Translation engines and localization tools are the main consumers; browser UI may not visibly change text by itself.
✓ Baseline · Widely available
translate
Widely available in browsers since about March 2023. Chrome, Firefox, Safari, Edge, and Opera expose the attribute / IDL. Tools like Google Translate honor translate="no".
95%Global support (approx.)
Google Chrome19+
Full support
Mozilla Firefox111+
Full support
Apple Safari6+
Full support
Microsoft Edge79+
Full support
Opera15+
Full support
Samsung InternetModern · Full
Full support
Internet ExplorerNo
Not supported
translateWidely supported
Bottom line: Safe to use for brands and code. Mark fixed strings with translate="no" even if you also ship separate locale files — browser translate features and MT tools benefit.
Remember
Key Takeaways
Role: hint whether text should be translated during localization.
Values:yes / empty = translate; no = leave unchanged.
Protect: brands, product names, and <code> snippets.
Pair with:lang for language identity; not CSS transforms.
One line: use translate="no" on strings that must stay as-is when the page is translated — especially brand names and code.
Frequently Asked Questions
It is a global enumerated attribute that tells localization tools whether an element’s text and its translatable attribute values should be translated (yes or empty) or left unchanged (no).
For brand names, product names, code snippets, usernames, and other strings that must stay in the original language when the page is translated.
yes or the empty string means translate. no means do not translate. It is an enumerated attribute, not a free-text field.
Usually no. translate is a hint for automatic translators (such as Google Translate) and human localization tools. The visible page does not morph until a translator runs.
lang declares the language of the content. translate decides whether that content should be rewritten during localization. Use both: lang on the page, translate="no" on fixed names.
No. It is a standard HTML global attribute and Baseline widely available (browser recognition since about March 2023). Translation tools have respected translate="no" for longer.