localization

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedLanguages []*LangInfo

Functions

This section is empty.

Types

type LangInfo

type LangInfo struct {
	Abbr        string
	EnglishName string
	Name        string
}

type Localizer

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

func NewLocalizer

func NewLocalizer(langs ...string) *Localizer

func (*Localizer) Data

func (l *Localizer) Data(msg string, data map[string]interface{}) string

func (*Localizer) Msg

func (l *Localizer) Msg(msg string) string

Jump to

Keyboard shortcuts

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