@Gargron On this topic, you might want to check out SimplyTranslate: simplytranslate.org

It has an API that supports several backends (Google, DeepL, LibreTranslate), and provides a layer of privacy for users.

simple-web.org/projects/simply