i18n

package
v0.0.0-...-ff244ab Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadLocale

func LoadLocale(identifier string, rawPO []byte)

LoadLocale creates the translation object for a locale from the content of a .po file

func Translate

func Translate(key, locale string, vars ...interface{}) string

Translate translates the given key on the specified locale.

func Translator

func Translator(locale string) func(key string, vars ...interface{}) string

Translator returns a translation function of the locale specified

Types

This section is empty.

Jump to

Keyboard shortcuts

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