Prevent Chrome from Translating a Page

By  on  

A while back I shared my favorite Google Chrome extension:  Google Art Project.  I've enjoyed seeing beautiful art when I open a new tab -- it's brought genuine happiness to my day, however small that happiness may be.  About a week ago, however, the art presented had a non-English name and so the Chrome "translate" bar dropped down every time I opened a new tab.  And since the artwork rotates daily, Chrome was super slow that day. It made me ask:  is there a way to prevent the translate bar from displaying? The answer is yes!

The answer comes in the form of a <meta> tag:

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

I wish the Google Art Project developers would implement this tag so I could get a new tab opened without delay when the artwork has a non-English title.  It is also handy that developers can prevent the toolbar from displaying on their sites -- not that I can think of why.  Anyways, thought I'd share this with you.

Recent Features

  • By
    Introducing MooTools Templated

    One major problem with creating UI components with the MooTools JavaScript framework is that there isn't a great way of allowing customization of template and ease of node creation. As of today, there are two ways of creating: new Element Madness The first way to create UI-driven...

  • By
    Regular Expressions for the Rest of Us

    Sooner or later you'll run across a regular expression. With their cryptic syntax, confusing documentation and massive learning curve, most developers settle for copying and pasting them from StackOverflow and hoping they work. But what if you could decode regular expressions and harness their power? In...

Incredible Demos

  • By
    Assign Anchor IDs Using MooTools 1.2

    One of my favorite uses of the MooTools JavaScript library is the SmoothScroll plugin. I use it on my website, my employer's website, and on many customer websites. The best part about the plugin is that it's so easy to implement. I recently ran...

  • By
    Basic AJAX Requests Using MooTools 1.2

    AJAX has become a huge part of the modern web and that wont change in the foreseeable future. MooTools has made AJAX so simple that a rookie developer can get their dynamic pages working in no time. Step 1: The XHTML Here we define two links...

Discussion

  1. I also wish the Google Art Project Developers would implement this in their Google chrome to speed up things. Thanks for sharing.

  2. One of the things I nag browser makers on is documentation. I was curious to see if this was officially documented and it looks like it is:

    https://support.google.com/webmasters/answer/79812?hl=en

    There were some other interesting notes on that page too.

  3. Oumar FALL

    I whish this snippet be in HTML5 Boilerplate :)

  4. You can use a userscript that adds this meta.

  5. Google Chrome will also translate iframes on a page that contains content not in the browser default language.

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!