简体   繁体   English

Chrome 无法识别网站的语言

[英]Chrome doesn't recognize the language of the site

We're trying to enable Chrome's translation prompt in El Espectador site.我们正在尝试在El Espectador站点中启用 Chrome 的翻译提示。

Here's how the prompt appears in the address bar in sites like El Pais but not in our's.以下是提示在El Pais等网站的地址栏中显示的方式,但在我们的网站中却没有。

El Pais 的翻译提示

We've tried setting the language of the site in several ways:我们尝试通过多种方式设置网站的语言:

  • HTML tag: <html lang="es"> HTML 标签: <html lang="es">
  • META tag: <meta name="language" content="spanish"/> META 标签: <meta name="language" content="spanish"/>
  • content-language header:内容语言标题: 网站的标题

Are we missing anything?我们错过了什么吗?

This is because El Espectador have the following tag:这是因为El Espectador有以下标签:

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

Remove it and it should work.删除它,它应该可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM