i18n

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultLocale = "en,zh-CN;q=0.9,zh;q=0.8,en-US;q=0.7,en-GB;q=0.6"
)

Functions

func InitI18N

func InitI18N()

func LangCodesSprintf

func LangCodesSprintf(codes i18n.LanguageCodes, key string, args ...interface{}) string

func OrgSprintf

func OrgSprintf(orgID, key string, args ...interface{}) string

func SetSingle

func SetSingle(trans i18n.Translator)

func Sprintf

func Sprintf(locale, key string, args ...interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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