How do I prevent Safari from offering to translate a page?

Viewed 2232

I run a website that is in English but iOS 14 mobile Safari still offers to translate the page. How do I prevent this?

From this similar question I've found none of these work:

1. <html lang="en">
2. <html translate="no">
3. <meta name="google" content="notranslate">
4. <meta http-equiv="content-language" content="en" />
1 Answers

Solution

You can try html tag like this <html translate="no">.

This will make your html page to non-translate.

Other Versions

<meta name="google" content="notranslate">

<html lang="en" class="notranslate">

<meta http-equiv="content-language" content="en" />

For more: https://www.w3.org/International/questions/qa-http-and-lang

Related