HabitRPG / habitica-chat-extension

A habitica.com Chat Client for Chrome
18 stars 13 forks source link

Feature Request: Add button to translate text in chat to native language #81

Open cTheDragons opened 2 years ago

cTheDragons commented 2 years ago

Add a button on each chat window not by you to add the ability to translate the bubble text using Google Translate.

For Example, if the text in the bubble is:

第一次来,请多指教

It will create an external (Extra) tab with the link

https://translate.google.com/?sl=auto&tl=en&text=%E7%AC%AC%E4%B8%80%E6%AC%A1%E6%9D%A5%EF%BC%8C%E8%AF%B7%E5%A4%9A%E6%8C%87%E6%95%99&op=translate

The button must not part of the Avatar, or stop the copy and pasting of text. It can appear on the outside of the bubble if best (Maybe only appear when you hover?)

ghost commented 2 years ago

It might not answer your question, but afaik DeepL professional offers ways to translate in different documents or websites, however the translation may not be so good as in GoogleTranslate.com Have you checked? https://www.deepl.com/pro?cta=header-pro

cTheDragons commented 2 years ago

I have a quick check of DeepL. The only issue is it is country limited. https://www.deepl.com/pro/select-country?cta=header-pro#team. (Which includes mine) So I think it best we stick with Google Translate for now.

Thanks for the suggestion though. Didn't realise this existed.