translator

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalI18nConfigs string

InternalI18nConfigs contains all protocl internal i18n configs.

Functions

This section is empty.

Types

type Tran

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

Tran is a translator.

func NewInternalTranslator

func NewInternalTranslator() *Tran

NewInternalTranslator .

func (*Tran) Get

func (t *Tran) Get(lang i18n.LanguageCodes, key, def string) string

Get .

func (*Tran) Sprintf

func (t *Tran) Sprintf(lang i18n.LanguageCodes, key string, args ...interface{}) string

Sprintf .

func (*Tran) Text

func (t *Tran) Text(lang i18n.LanguageCodes, key string) string

Text .

Jump to

Keyboard shortcuts

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