Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation of all incoming email based on language #247

Open
owelles opened this issue Feb 4, 2025 · 4 comments
Open

Translation of all incoming email based on language #247

owelles opened this issue Feb 4, 2025 · 4 comments
Labels
api_google_gemini Google Gemini API Integration api_ollama Ollama API Integration api_openai_comp Compatible OpenAI API Integration for local LLMs api_openai OpenAI API Integration for Chatgpt new feature

Comments

@owelles
Copy link

owelles commented Feb 4, 2025

(First of all I want to thank you for your work!)
I am living in Japan and receive a lot of work email all written in Japanese. Luckily, LLM are very good at translating Japanese but it is not convenient to have to translate manually each email. I found your great plugin while trying to see if someone developed a solution for this, it does not seem impossible but unfortunately I don't have the knowledge to do this.

I think that it would be great if for each email received in the inbox, we ask a LLM to translate it in the language of our choice.
Then I am not too familiar with what is possible but would be nice to have the email unread with its translation (for example in a Translated inbox).

It would also be nice if when replying the email that we reply to does not contain the translated text.

@micz
Copy link
Owner

micz commented Feb 4, 2025

That's a great idea, thank for your suggestion.

I think that autotranslating could be too much if the user receives many mails.
What do you think about adding a button in the message like this one (do not mind the graphic, it's just an example):

Image

When pressing it ThunderAI will translate it directly in the mail.
It could translate also the subject, but not substituting it in the subject field.

Image

If you reply to the email, only the original text will be kept.

To customize the translation used by this feature, it could be added a page to setup a special prompt (like the one for the tags).
This system will be used only with an API integration.

What do you think about it?

@owelles
Copy link
Author

owelles commented Feb 5, 2025

Thank you so much for your super quick answer and I'm glad that you like the idea!

I think this sounds great, but in my case I thought about translating all the emails received especially because I receive many of them.
My reasoning is that many of the emails I receive are not important for me and I can ignore them in a second if I understand the topic. Translating all incoming email (maybe as an option), allows to have all the translation time done in the background so that I don't have to wait for a few seconds to get the translation when I'm sorting the email and everything can be faster.

Just to explain a bit more, if I want to sort my emails and I have to translate them while I open them then It will take N*[translation time + reading time/replying time], for many emails I receive reading time + replying time is negligible so most of the time will be N*translation time which if done in background before will be saved.

But I also see merit in the solution you propose in particular for saving battery of laptops etc.

Thank you so much for your work again!

@micz
Copy link
Owner

micz commented Feb 5, 2025

I understand your point.
I think it could be added as an option.
The idea is to store every translation so that if you open an already translated mail you see the panel with the translation.
I add the new feature label. I'll update this issue with the progress.
Just be patient, it could take a while.
Thank you again!

@micz micz added new feature api_openai OpenAI API Integration for Chatgpt api_ollama Ollama API Integration api_openai_comp Compatible OpenAI API Integration for local LLMs api_google_gemini Google Gemini API Integration labels Feb 5, 2025
@owelles
Copy link
Author

owelles commented Feb 5, 2025

Thank you very much! This will be a super nice feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api_google_gemini Google Gemini API Integration api_ollama Ollama API Integration api_openai_comp Compatible OpenAI API Integration for local LLMs api_openai OpenAI API Integration for Chatgpt new feature
Projects
None yet
Development

No branches or pull requests

2 participants