class Ktistec::Translator::DeepLTranslator
- Ktistec::Translator::DeepLTranslator
- Ktistec::Translator
- Reference
- Object
Overview
Client for DeepL translation.
Defined in:
utils/translator.crConstant Summary
-
DEEPL_API =
"https://api.deepl.com/v2/translate"
-
DEEPL_FREE_API =
"https://api-free.deepl.com/v2/translate"
-
Log =
::Log.for("translator.deep_l")
Constructors
Instance Method Summary
- #api_uri : URI
- #translate(name : String | Nil, summary : String | Nil, content : String | Nil, source : String, target : String) : NamedTuple(name: String | Nil, summary: String | Nil, content: String | Nil)
Instance methods inherited from class Ktistec::Translator
translate(name : String | Nil, summary : String | Nil, content : String | Nil, source : String, target : String) : NamedTuple(name: String | Nil, summary: String | Nil, content: String | Nil)
translate
Constructor Detail
Instance Method Detail
def translate(name : String | Nil, summary : String | Nil, content : String | Nil, source : String, target : String) : NamedTuple(name: String | Nil, summary: String | Nil, content: String | Nil)
#