tl

package
v0.0.0-...-eae27d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LangDE German
	LangDE = "DE"
	// LangEN English (American)
	LangEN = "EN-US"
	// LangENGB English (British)
	LangENGB = "EN-GB"
	// LangES Spanish
	LangES = "ES"
	// LangFR French
	LangFR = "FR"
	// LangIT Italian
	LangIT = "IT"
	// LangJA Japanese
	LangJA = "JA"
	// LangNL Dutch
	LangNL = "NL"
	// LangPL Polish
	LangPL = "PL"
	// LangPTPT Portuguese (European)
	LangPTPT = "PT-PT"
	// LangPTBR Potuguese (Brazillian)
	LangPTBR = "PT-BR"
	// LangRU Russian
	LangRU = "RU"
	// LangZH Chinese
	LangZH = "ZH"
	// LangAuto Detect
	LangAuto = ""
)

Variables

View Source
var DEEPL_API_KEY string
View Source
var DeepLClient *deepl.Client
View Source
var GOOGLE_CLIENT_ID string
View Source
var GOOGLE_SECRET string
View Source
var GoogleClient *translate.Client

Functions

func DeepLTranslate

func DeepLTranslate(text string, language string) (string, string, error)

func GoogleTranslate

func GoogleTranslate(text string) (string, error)

func InitDeepL

func InitDeepL()

func InitGoogle

func InitGoogle()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL