Select all and translate into English (全选并翻译成英文)

Mac lacks the function of one-click translation of native language into English, which causes us to encounter some difficulties when chatting with native English speakers or using English search on the web page.
mac 上缺少一键把母语翻译成英文的功能,这导致我们和英文母语者聊天,或者网页上使用英文搜索时遇到一些困难.
The following is the macro file of one-click translation.
以下是一键翻译的宏文件
Select all and translate into English.kmmacros (3.7 KB)

Screenshot
截图

Note: I called the shortcut command here to realize the translation function.
注意:我这里调用了快捷指令来实现翻译功能

The screenshot of the shortcut command is as follows:
快捷指令截图如下:

After a day of use, I found that there was a little flaw in the translation of mac: when there is both its native language and English in a sentence, it may not be translated.

For example, the following sentence:
hello,大家好.

This sentence can't be translated alone. But if you put this sentence in a large paragraph, it can be translated again. Mac's own translation seems to have some shortcomings.