From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/html/global_attributes%2Ftranslate.html | 67 +++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 devdocs/html/global_attributes%2Ftranslate.html (limited to 'devdocs/html/global_attributes%2Ftranslate.html') diff --git a/devdocs/html/global_attributes%2Ftranslate.html b/devdocs/html/global_attributes%2Ftranslate.html new file mode 100644 index 00000000..c9a58da7 --- /dev/null +++ b/devdocs/html/global_attributes%2Ftranslate.html @@ -0,0 +1,67 @@ +

translate

+

The translate global attribute is an enumerated attribute that is used to specify whether an element's translatable 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:

Although not all browsers recognize this attribute, it is respected by automatic translation systems such as Google Translate, and may also be respected by tools used by human translators. As such it's important that web authors use this attribute to mark content that should not be translated.

+
+

Examples

+
+

In this example, the translate attribute is used to ask translation tools not to translate the company's brand name in the footer.

+

html

+
<footer>
+  <small>© 2020 <span translate="no">BrandName</span></small>
+</footer>
+
+
+
+

Specifications

+
+ + +
Specification
HTML Standard
# attr-translate
+

Browser compatibility

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on IOSSamsung Internet
translate1979111No1564.4251111461.5
+

See also

+
+

+ © 2005–2023 MDN 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 +

+
-- cgit v1.2.3