This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
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:
"yes"
, which indicates that the element should be translated when the page is localized."no"
, which indicates that the element must not be translated.While browser support for this attribute is currently nonexistent, automatic translation services support it.
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 |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | No | No | No | No | No | No |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | No | No | No | No | No | No | No |
HTMLElement.translate
property that reflects this attribute.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate