solvit.io

Prevent Google from translating some or all the contents of your website

Solution #1

Prevent Google Translate from translating the entire page:

<!-- ... -->
<head>
    <!-- ... -->
    <meta name="google" content="notranslate" />
</head>
<!-- ... -->
Solution #2

Add the .notranslate CSS class to prevent translating specific elements.

Example
<body>
    <!-- this paragraph will be translated -->
    <p>Lorem ipsum...</p>

    <!-- this content won't be translated -->
    <pre class="notranslate">
        var lorem = 'ipsum';
    </pre>
</body>
Find more solutions about: ,