Since you seem to be on a implementation spree @lnkr we could probably use some inline translation like Phanpy does. They way its done there is pretty perfect, and when I am playing in Plamenu's interface I miss it right away
@wakest I do have it! Currently it supports LibreTranslate, DeepL and local LLMs. I had it running with some small local model on the same server for a while, on paper it's cool privacy-friendly setup but it still was too slow and resource hungry so I recently turned it off and haven't connected to anything else yet.
Phanpy uses Google Translate through some unofficial ways https://github.com/cheeaun/translang-api . It's quite effective but I'm not super happy about the idea of sending fedi posts to google while potentially breaking their ToS and don't want to risk getting any abuse countermeasures on my servers. I'll figure something out soon and I'll let you know
GitHubGitHub - cheeaun/translang-api: A simple translation API that acts as a proxy for Google Translate, built with Deno and Hono.A simple translation API that acts as a proxy for Google Translate, built with Deno and Hono. - cheeaun/translang-api@lnkr I didn't realize phanpy was using google translate, interesting. so the libretranslate support is already working its just turned off atm?
@wakest libretranslate would be a separate thing to self-host, I tried it locally but wasn't happy with the resource usage and translation quality either, I don't currently have it. Maybe I can use some public libretranslate instance
@wakest I've enabled the inline translate, for the moment it uses the super evil chinese AIs (since I have it for free for a few months without breaking any terms of service and the performance/quality seems alright). I'll switch it for something non-evil later.
You can select which language you want to translate to at https://staging3.plamenu.com/settings/languages lemme know if it works or not
@lnkr I scrolled to a random russian post and the translate worked great!then came across this one https://suya.place/objects/d9f34b85-8630-4239-8a20-04fe4ed0ceb7 and its set to "english" so it didn't offer translation. might add it in the ... menu as an option even if the post has a different language set?
suya.placecheesus crust (@cheesus@suya.place)Обращаем ваше внимание, что в салоне автобуса не оплатили проезд более семи пассажиров Один я долбоёб, который хочет на автобусе ночью после последнего поезда метро добраться@wakest I think I'll just offer the same option at the same place regardless of post's reported language. Updated.