i18n

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tr

func Tr(key message.Reference, args ...interface{}) string

Types

type Localizer

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

func New

func New(lang language.Tag) Localizer

Create a new Localizer for a language tag

func (Localizer) Translate

func (l Localizer) Translate(key message.Reference, args ...interface{}) string

Return the translated string, with variables replaced.

Jump to

Keyboard shortcuts

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