i18n

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func L

func L(key string, args ...interface{}) string

L returns the i18n locale string corresponding to the specified key and args.

func Locales

func Locales() []string

Locales returns the locales list.

func SetLocale

func SetLocale(name string) error

SetLocale sets the current locale file.

Types

type Locale

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

Jump to

Keyboard shortcuts

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