config() = map()
language() = string() | binary()
translate_result() = {ok, binary()} | {error, term()}
| default_config/0 | Returns the default config (handler defaults + our default prompt template). |
| get_env_config/0 | Returns config from environment variables, falling back to defaults. |
| translate/2 | Translate text to the target language using environment/default config. |
| translate/3 | Translate text to the target language using a custom config. |
default_config() -> config()
Returns the default config (handler defaults + our default prompt template).
get_env_config() -> config()
Returns config from environment variables, falling back to defaults.
translate(TargetLang::language(), Text::string()) -> translate_result()
Translate text to the target language using environment/default config.
translate(TargetLang::language(), Text::string(), Config::config()) -> translate_result()
Translate text to the target language using a custom config.
Generated by EDoc