deeplapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslateText

func TranslateText(text string, source string, target string, conf conf.ConfTranslator) res.ResTranslator

Types

type Req

type Req struct {
	Text   []string `json:"text"`
	Source string   `json:"source_lang"`
	Target string   `json:"target_lang"`
}

type Resp added in v1.0.0

type Resp struct {
	Translations []RespTranslation `json:"translations"`
}

type RespTranslation added in v1.0.0

type RespTranslation struct {
	DetectedSourceLanguage string `json:"detected_source_language"`
	Text                   string `json:"text"`
}

Jump to

Keyboard shortcuts

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