Prevent Google translate from translating some words
You can disable Google Translate on the website, or parts of the website. Sometimes Google Search provides translated results, which help users to access information available in another language, and websites and blogs to reach a wider audience. You can read this article to get more information about translated results showing in Google search.
Let's learn how to prevent some content from being translated automatically on a website.
If you want to translate whole page except some text or html element, You can tell to Google Search "please do not translate certain parts of the website"
Learn how to convert your website/blog into a multi language website.
<div>
Not translate word
<span class="notranslate">
Google Search
</span>
on my website.
</div>
output:
<div>
Not translate word
<span translate="no">
Google Search
</span>
on my website.
</div>
output:
The above approach will be suitable when we have limited content or element which we don't want to translate but what will you do if the situation is opposite.
If you want only few content or certain sections of the website to be translated, Or a large part of the website should not be translated but some text inside it should be translated.
Allow translate, inside 'notranslate' class element.
Aadding attribute translate="yes" inside class="notranslate"
<div class="notranslate">
Not translate word
<span translate="yes">
Google Search
</span>
on my website.
</div>
output: