translation

package
v0.12.10 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeeplFree added in v0.12.1

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

func (*DeeplFree) Name added in v0.12.1

func (deepl *DeeplFree) Name() string

func (*DeeplFree) SetupAPIKey added in v0.12.1

func (deepl *DeeplFree) SetupAPIKey()

func (*DeeplFree) Translate added in v0.12.1

func (deepl *DeeplFree) Translate(text, src, dest string) string

type GoogleFree

type GoogleFree struct{}

func (*GoogleFree) Name

func (googlefree *GoogleFree) Name() string

func (*GoogleFree) Translate

func (googlefree *GoogleFree) Translate(text, src, dest string) string

type Provider

type Provider interface {
	Name() string
	Translate(text, src, dest string) string
}

type Translation

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

func (*Translation) Cleanup

func (translation *Translation) Cleanup()

func (*Translation) Entries

func (translation *Translation) Entries(term string) []util.Entry

func (*Translation) General

func (translation *Translation) General() *config.GeneralModule

func (*Translation) Refresh

func (translation *Translation) Refresh()

func (*Translation) Setup

func (translation *Translation) Setup() bool

func (*Translation) SetupData

func (translation *Translation) SetupData()

func (*Translation) SpecialFunc

func (translation *Translation) SpecialFunc(args ...interface{})

Jump to

Keyboard shortcuts

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