This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
The translate global attribute is an enumerated attribute that is used to specify whether an element's attribute values and the values of its Text
node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:
- empty string and
"yes"
, which indicates that the element should be translated when the page is localized. "no"
, which indicates that the element must not be translated.
Specifications
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'translate' in that specification. |
Living Standard | No change from latest snapshot, HTML5.1 |
HTML5.1 The definition of 'translate' in that specification. |
Recommendation | Snapshot of WHATWG HTML Living Standard, initial definition |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | No support | No support | No support | No support | No support |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | No support | No support | No support | No support | No support | No support |
See also
- All global attributes.
- The
HTMLElement.translate
property that reflects this attribute.