lang

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Trans added in v0.0.2

func Trans(locale, msg string, params ...string) string

Trans returns a translated message for a given locale. If the locale doesn't exist, a fallback locale will be used

func Translator

func Translator(locale string) ut.Translator

Translator returns the instance of translator for a given locale. If the given locale doesn't exist, a fallback locale will be used

Types

This section is empty.

Jump to

Keyboard shortcuts

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