translate (attribute)

The translate global attribute is an enumerated attribute that is used to specify whether an element's translateable attribute values and its Text node children should be translated when the page is localized, or whether to leave them unchanged. It can have the following values:

  • empty string or "yes", which indicates that the element should be translated when the page is localized.
  • "no", which indicates that the element must not be translated.

Although not all browsers recognize this attribute, it is respected by automatic translation systems such as Google Translate, and may also be respected by tools used by human translators. As such it's important that web authors use this attribute to mark content that should not be translated.


In this example, the translate attribute is used to ask translation tools not to translate the company's brand name in the footer.

  <small>© 2020 <span translate="no">BrandName</span></small>


Specification Status Comment
HTML Living Standard
The definition of 'translate' in that specification.
Living Standard No change from latest snapshot, HTML 5.1
HTML 5.1
The definition of 'translate' in that specification.
Recommendation Snapshot of HTML Living Standard, initial definition

Browser compatibilityUpdate compatibility data on GitHub

Chrome Edge Firefox Internet Explorer Opera Safari
translate Yes 79 No No Yes Yes
Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
translate Yes Yes No Yes Yes Yes

See also

© 2005–2020 Mozilla and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.