如何在 Chrome 中从 HTML 中禁用谷歌翻译 [英] How to disable Google translate from HTML in Chrome
问题描述
我刚刚为一家法国餐厅制作了一个网站.该网站是英文的,但我想网站上有足够的法语(菜单项的标签图片)可以提示访问者在使用 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.
有什么我可以添加到 html 中以防止 chrome 要求翻译页面的内容吗?我假设它类似于 <html lang="en">
但这不起作用.
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.
有什么想法吗?
谢谢
推荐答案
新答案
将 translate="no"
添加到您的 <html>
标签,如下所示:
New Answer
Add translate="no"
to your <html>
tag, like so:
<html translate="no">
(这应该仍然有效,但不太理想,因为它是特定于 Google 的,而且还有其他翻译服务.)
(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">
这篇关于如何在 Chrome 中从 HTML 中禁用谷歌翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!