google

package
v0.0.0-...-13e6371 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTranslationGarbage

func IsTranslationGarbage(text string) bool

Types

type BatchTranslator

type BatchTranslator struct {
	// contains filtered or unexported fields
}

func NewBatchTranslator

func NewBatchTranslator(length int, delay time.Duration) *BatchTranslator

func (*BatchTranslator) Join

func (q *BatchTranslator) Join(req *translator.Request) (string, error)

type Translate

type Translate struct {
	// contains filtered or unexported fields
}

func New

func New() *Translate

func (*Translate) Enabled

func (t *Translate) Enabled() bool

func (*Translate) Name

func (t *Translate) Name() string

func (*Translate) Start

func (t *Translate) Start(c config.TranslatorConfig) error

func (*Translate) Translate

func (t *Translate) Translate(req *translator.Request) (string, error)

Jump to

Keyboard shortcuts

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