localize

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 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 AssetLoader

type AssetLoader func(path string) ([]byte, error)

type Localizer

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

func NewLocalizer

func NewLocalizer(loadAsset AssetLoader) (*Localizer, error)

func (*Localizer) LoadLocale

func (l *Localizer) LoadLocale(locale string) error

func (*Localizer) SetLang

func (l *Localizer) SetLang(lang string)

func (*Localizer) T

func (l *Localizer) T(key string, args ...Replacements) string

type Replacements

type Replacements map[string]string

type Strings

type Strings map[string]string

type StringsSet

type StringsSet map[string]Strings

Jump to

Keyboard shortcuts

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