Module translation

Module translation 

Source
Expand description

Translation client for OpenAI-compatible APIs.

Structs§

TranslationClient
Client for translating text using OpenAI-compatible APIs.
TranslationRequest
A request to translate text.

Constants§

SUPPORTED_LANGUAGES
Supported language codes (ISO 639-1) and their names.

Functions§

print_languages
Prints all supported language codes to stdout.
validate_language
Validates that the given language code is supported.