translate function

Attribute<GlobalHTMLAttribute> translate(
  1. String value
)

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);
}