tr

package module
v0.0.0-...-be7e2ea Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocale

func GetLocale() (string, bool)

func LangDefault

func LangDefault() string

Types

type Texts

type Texts map[string]string

type Tr

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

func New

func New() *Tr

func (*Tr) Count

func (t *Tr) Count() int

func (*Tr) GetList

func (t *Tr) GetList() *map[string]map[string]string

func (*Tr) JSON

func (t *Tr) JSON() []byte

func (*Tr) LangCount

func (t *Tr) LangCount() int

func (*Tr) LangName

func (t *Tr) LangName(lang string) string

func (*Tr) LoadLangs

func (t *Tr) LoadLangs(filename string) bool

func (*Tr) LoadTrs

func (t *Tr) LoadTrs(scanPath string) bool

func (*Tr) SaveNew

func (t *Tr) SaveNew(scanPath string) bool

func (*Tr) SetDef

func (t *Tr) SetDef(text string)

func (*Tr) Tr

func (t *Tr) Tr(lang, text string) (string, bool)

Jump to

Keyboard shortcuts

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