How to disable google translate from html in chrome

前端 未结 6 1972
星月不相逢
星月不相逢 2020-11-27 11:32

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 v

6条回答
  •  囚心锁ツ
    2020-11-27 11:48

    To always work in any translator, copy and paste the code above:

        
      
                                                    
    

    The more simple wai is just adding the translate="no" proprety. This can be made in divs, text and more. Here's an example:

    // Just for instructions
    // Do not copy or paste
    console.log("The first div don't alows translateing. But the second, alows it.")
    console.log("Open the translator and see the efect.")
    DIV1
    
    Try translating me! Olá - Hello - Hola

    DIV2
    Now, you can do it! Olá - Hello - Hola

提交回复
热议问题