i18n

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(locale string)

Default set the default local string

func InitTranslations

func InitTranslations(localeDir string) (err error)

InitTranslations read from the translation files of different locales.

func Locale

func Locale(locale string) string

Locale returns the actually locale of the messages

func Tr

func Tr(locale string, key string, params ...interface{}) (output string)

Tr gets the formatted messages by the specified locale and message key

Types

This section is empty.

Jump to

Keyboard shortcuts

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