polyglot

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 0 Imported by: 1

README

polyglot

Tiny Translation API integration module supporting Google Cloud, Azure Cognitive Services

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TranslateFormat

type TranslateFormat string
const (
	HTML TranslateFormat = "html"
	Text TranslateFormat = "text"
)

type Translator

type Translator interface {
	Languages(language string) (map[string]string, error)
	Detect(content string) (string, error)
	Translate(source, target string, format TranslateFormat, query ...string) ([]string, error)
	IsHTMLSupported() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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