dummyfortest

package
v0.0.0-...-3420d2a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyEngine

type DummyEngine struct {
}

func (DummyEngine) IsSourceSizeOK

func (t DummyEngine) IsSourceSizeOK(src string) bool

This implementation can only translate a source shorter than 100 chars

func (DummyEngine) LoadConfig

func (t DummyEngine) LoadConfig(conf config.Config) error

func (DummyEngine) Name

func (t DummyEngine) Name() string

func (DummyEngine) SetEndpoint

func (t DummyEngine) SetEndpoint(endpoint string) error

func (DummyEngine) SupportedSourceLanguages

func (t DummyEngine) SupportedSourceLanguages() ([]language.Tag, error)

This implementation only supports American/British English and Japanese

func (DummyEngine) SupportedTargetLanguages

func (t DummyEngine) SupportedTargetLanguages(srcLang language.Tag) ([]language.Tag, error)

This implementation only supports certain combination

func (DummyEngine) Translate

func (t DummyEngine) Translate(ctx context.Context, srcLang language.Tag, tgtLang language.Tag, src string) (string, error)

Jump to

Keyboard shortcuts

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