sienori / simple-translate

WebExtensions for translating text on web pages
http://simple-translate.sienori.com/
Mozilla Public License 2.0
1.14k stars 129 forks source link

Chinese translation problem #155

Open bryanau1997 opened 5 years ago

bryanau1997 commented 5 years ago

With "Automatically switch to the second language" enabled, I still get this result. Meanwhile I'm using Chinese (Hong Kong) as system language with Chinese (Taiwan) as first target language and English as second language. Will there be something like Chinese (Hong Kong) supported in the future? Though basically both Chinese (HK) and Chinese (TW) are same things. Untitled

sienori commented 5 years ago

Chinese (Hong Kong) is not supported by the translation API.

The translation API detects the language of "令和" as zh-CN. Therefore, Automatically switch to the second language does not work and it is translated to zh-TW. This feature can not be used when using a language that is easily detected incorrectly.

I plan to implement a function to specify the source language and target language in the future.