Possible? Sure. I am not sure if it's desirable. No one likes these translations services that require all your messages to get sent to a server. It would be a lot better if they created a local model to translate in-device like the Play version does.
Discussion
You're right, I've checked a bit the code and I've seen that the google play version uses local translation with mlkit, which I think is very good, I thought it used google translate api.
LibreTranslate and Mozilla Translate provide translation models to be used offline, but they don't have plugins so they can be integrated into android apps âšī¸
taking up this suggestion, would it be possible for nostr:npub1m6jhuayzk6yhhsfzga6wkfjt7kev4lpwvp33he5g5kjc3cg4vusqg6whzt to build an offline library alternative to mlkit that could be integrated into Android apps, based on libretranslate? I think it would be an interesting project for the progress of libretranslate and its integration in apps (such as Amethyst).
mlkit docs to use as guide to build libretranslate alternative --> https://developers.google.com/ml-kit/language/translation
Cc: nostr:npub1353wlat3dqcqmm27cpw4307pfvuwg93098yzg8lgganr06cz80aqm684wv