{{HTMLSidebar("Global_attributes")}}{{SeeCompatTable}}
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 |
---|---|---|
{{SpecName('HTML WHATWG', "dom.html#attr-translate", "translate")}} | {{Spec2('HTML WHATWG')}} | No change from latest snapshot, {{SpecName('HTML5.1')}} |
{{SpecName('HTML5.1', "dom.html#the-translate-attribute", "translate")}} | {{Spec2('HTML5.1')}} | Snapshot of {{SpecName('HTML WHATWG')}}, initial definition |
Browser compatibility
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{ CompatNo }} | {{ CompatNo }} | {{ CompatNo }} | {{ CompatNo }} | {{ CompatNo }} |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{ CompatNo }} | {{ CompatNo }} | {{CompatNo }} | {{ CompatNo }} | {{ CompatNo }} | {{ CompatNo }} |
See also
- All global attributes.
- The {{domxref("HTMLElement.translate")}} property that reflects this attribute.