aeharding / voyager

Voyager — a beautiful app for Lemmy
https://vger.app
GNU Affero General Public License v3.0
1.5k stars 169 forks source link

Translate title of posts and posts #1485

Open Labna opened 6 months ago

Labna commented 6 months ago

Is your feature request related to a problem? Please describe. I like to travel across may communities, but most of them don't use languages I understand

Describe the solution you'd like I'd like to have a general option to translate posts from all language in that language except the list I understand.

Describe alternatives you've considered Get an options in the ... options of the post to translate, or send to translate app/service

Options to consider Using one of the many free/open source API for translation, a little liste here : https://rapidapi.com/collection/translation-apis

Labna commented 3 months ago

I was thinking about it and for me it may be:
A menu in Settings → general → Other → "translate posts" → "Auto translate all posts" [ default = No ] → "Show option to translate post" [ default = No ] (so it's doesn't disturb any one with a non-working by default option ]

There you can have multiple API asking for private keys (it's the trickiest part for the user)
Exemple of options for DeepL:
→ Target language [ "EN", "FR"...]
→ API key [ provided by the service ]
→ Languages to translate [ default = All (except the app language) ]
→ Languages to not translate [ default = none ]
As the API for translation are fairly the same, to support many services it may not need a lot of work (I guess).