Documentation
¶
Index ¶
Constants ¶
View Source
const ( FORMATTER_HTML = "html" FORMATTER_JSON = "json" FORMATTER_PLAIN = "plain" )
View Source
const ( TRANSLATOR_BING = "bing" TRANSLATOR_GOOGLE = "google" TRANSLATOR_DEEPL_API = "deepl-api" TRANSLATOR_LIBRETRANSLATE_API = "libretranslate-api" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Translator ¶
type Translator struct { Code string Conf conf.ConfTranslator }
func (*Translator) Name ¶
func (t *Translator) Name() string
func (*Translator) TranslateText ¶
func (t *Translator) TranslateText(text string, source string, target string) res.ResTranslator
Click to show internal directories.
Click to hide internal directories.