RE: https://mastodon.social/@pixelfed/117234465193694527
I found a clever and efficient way to handle translations offline, with 59 supported languages and built in language detection.
We also cache translated text using Tanstack Query, and use your device language to check only visible captions to see if we show the translation button.
The first time you press the button, we download a small translation model (30MB) and perform the translation, caching the model for future use.
Short text, mentions and links are ignored.