translate function
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 will be translated. no
, which indicates that the element will not be translated.
Implementation
Attribute<GlobalHTMLAttribute> translate(String value) {
return Attribute('translate', value);
}