class Ktistec::Translator::LibreTranslateTranslator

Overview

Client for LibreTranslate translation.

Defined in:

utils/translator.cr

Constant Summary

LIBRETRANSLATE_API = "https://libretranslate.com/translate"
Log = ::Log.for("translator.libre_translate")

Constructors

Instance Method Summary

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

def self.new(api_uri : URI, api_key : String) #

[View source]

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) #

[View source]