1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Google自動翻訳による「日本語→日本語」の不自然な翻訳を防ぐ方法

Posted at

はじめに

Google Chromeなどのブラウザで、言語の判別がうまくいかないと、「このページは外国語」と誤認され、日本語ページに対してもう一度日本語で翻訳される、という不思議なことが起きます。

このときに自動翻訳が有効になっていると、日本語が不自然に置き換えられるという不具合が発生することがあります。

解決策

web側でGoogle自動翻訳を強制的にオフにするには下記を1行加えるだけで大丈夫です。

application.html.erbなどのレイアウトファイル
<meta name="google" content="notranslate">

UIの日本語を意図せず変換されることを確実に防ぎたい場合はおすすめです。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?