i18n

package
v1.8.11 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupI18n

func SetupI18n()

func T

func T(lang, key string) string

func Tf

func Tf(lang string, key string, values ...interface{}) string

Types

type LangCode added in v1.8.2

type LangCode string
const (
	LangChinese  LangCode = "zh-CN"
	LangEnglish  LangCode = "en-US"
	LangRussian  LangCode = "ru-RU"
	LangJapanese LangCode = "ja-JP"
	LangFrench   LangCode = "fr-FR"
)

func LangOf added in v1.8.2

func LangOf(code string) LangCode

func (LangCode) String added in v1.8.2

func (s LangCode) String() string

Jump to

Keyboard shortcuts

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