Translation
Translate text and identify its language, across 232 languages.
Translating
from is optional and defaults to auto, so Aegis detects the source language
itself. Pass it when you already know it:
An empty text or an unknown to answers 400.
Detecting
When detection cannot settle on a language, it returns unknown rather than
failing.
Listing languages
Use code for to and from. This is a static list served from the cheap
class, so fetching it on startup costs you almost nothing.
Cost
Translate and detect are in the fetch class because they call an upstream
service; the language list is cheap. See rate limits.