The solution to the problem that Google browser Chrome cannot be translated

Recently, Google officially announced that due to the small number of users, it shut down the translation service in China, which made the translation service on Google Chrome unavailable. When we use the built-in translation function of Google Chrome, it will report: This page cannot be translated, or There is no translation response.

How to solve the problem that Google browser Chrome cannot be translated under macOS? The following editor will teach you a quick solution.

1. Open the terminal (commond+space search "terminal" to start quickly)

2. Enter the following code command

ping google.cn

3. The ping result can be displayed under the command, and you can see the parsing ip corresponding to google.cn, which will be used later

4. Add translate.googleapis.com to the hosts of this machine corresponding to the above ip, so that Google Chrome can access the ip we can access through this domain name.

The hosts file of macOS is in the /etc directory, and you can press the shortcut keys common+shift+G in the Finder to enter /etc for quick access.

Copy the hosts file to the desktop for repair, and add the corresponding rules of the IP obtained above in the last line, similar to the following

180.163.150.162 translate.googleapis.com

After modification, replace it to the /etc directory to take effect.

 

Guess you like

Origin blog.csdn.net/lilapliua/article/details/127321596