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 ☹️