localizer

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLang

func SetLang(defaultLang string) error

SetLang sets the default language

Types

type Localizer

type Localizer struct {
	*i18n.Bundle
}
var Default *Localizer

func NewLocalizer

func NewLocalizer(bundle *i18n.Bundle, langs ...string) *Localizer

NewLocalizer returns a new Localizer that looks up messages in the bundle according to the language preferences in langs.

TODO: support language preferences in langs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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