i18n

package
v0.0.0-...-2b7562f Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) string

func GetErrMsg

func GetErrMsg(key string, maps map[string]interface{}) string

func GetLanguage

func GetLanguage() string

func GetMsgByKey

func GetMsgByKey(key string) string

func GetMsgByKeyForCmd

func GetMsgByKeyForCmd(key string) string

func GetMsgWithDetail

func GetMsgWithDetail(key string, detail string) string

func GetMsgWithMap

func GetMsgWithMap(key string, maps map[string]interface{}) string

func GetMsgWithMapForCmd

func GetMsgWithMapForCmd(key string, maps map[string]interface{}) string

func GetWithName

func GetWithName(key string, name string) string

func GetWithNameAndErr

func GetWithNameAndErr(key string, name string, err error) string

func Init

func Init()

func SetCachedDBLanguage

func SetCachedDBLanguage(lang string)

func UseI18n

func UseI18n() gin.HandlerFunc

func UseI18nForCmd

func UseI18nForCmd(lang string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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