Sorry for eating into everyone’s DeepL translation quota on Damus. I have a pull request open. (1) Caches translations in memory (2) If auto-translate is off but a translation service is enabled in settings, it will still show the “Translate Note” button, even if the note isn’t selected. https://github.com/damus-io/damus/pull/843
Discussion
Awesome! Thanks.
Does Apple’s built in translate app not have any api or way to be used for nostr? On device would be a nice option. You can highlight text and select “translate” but it’s too many clicks.
It does not, unfortunately. I would be happy to implement it if it existed.
Doing this also sends the data of whatever you are translating to Apple. Something to keep in mind 😳
Not if you’re using it offline, but yea no way to prove its actually offline. We need some AI model that can be stored and run locally for translation… it’s only a matter of time
This is basically what you’re asking for. The tradeoff is that we add a dependency to Google, and requires storing translation models offline on disk and memory which can take a good amount of space. This is also what Amethyst does on Android. I’m happy to explore this translation approach as an option for Damus.
https://developers.google.com/ml-kit/language/translation/ios
This change had bugs so Will had to revert it. I’ll work on it this weekend.