htmlgoogle-chromegoogle-translate

How to disable Google translate from HTML in Chrome


I just made a website for a french restaurant. The website is in english, but I guess there is enough french on the website (labeled pictures of menu items) to prompt the visitor to translate the website if using Chrome.

Is there something I can add to the html to prevent chrome from asking to translate the page? I'd assume it'd be something like <html lang="en"> but that doesn't work.

Any ideas?

Thanks


Solution

  • New Answer

    Add translate="no" to your <html> tag, like so:

    <html translate="no">
    

    You also can add this to any element of your page if you want to allow/prevent only parts of the webpage to be translated.

    MDN Reference


    Old Answer

    (This should still work but is less desirable because it is Google-specific, and there are other translation services out there.)

    Add this tag in between <head> and </head>:

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

    Documentation reference