How to specify your webpage's language so Google Chrome doesn't offer to translate it

前端 未结 7 748
心在旅途
心在旅途 2020-12-01 04:03

I have a page that Google Chrome insists on thinking is in French. Here\'s a snapshot of it:

http://yootles.com/outbox/overcleverchrome.html

Note that I\'m i

7条回答
  •  孤城傲影
    2020-12-01 05:01

    Google Chrome currently requires several tags to make an (HTML5) document opt out of translation. Before doing this, you should be sure that you know your audience's language, as otherwise it will prevent foreign sites from properly translating your site.

    The relevant tags are:

    
    
    
    

    And here is a full example:

    
    
    
      
      
      
     
     
      Dies ist ein Test Deutsch
     
    

提交回复
热议问题