langutils

package
v0.0.0-...-b4327c8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectLangUtil

func InjectLangUtil(s *LangUtils)

func LoadLangUtil

func LoadLangUtil() baseiface.ISingleton

Types

type LangUtils

type LangUtils struct {
	basedto.BaseEntitySingle
}

func FindBeanLangUtil

func FindBeanLangUtil() *LangUtils

FindBeanLangUtil

func NewLangUtils

func NewLangUtils() *LangUtils

func (*LangUtils) GetLang

func (self *LangUtils) GetLang(c *gin.Context) string

func (*LangUtils) IfEnglish

func (self *LangUtils) IfEnglish(lang string) bool

func (*LangUtils) IfEnglishCtx

func (self *LangUtils) IfEnglishCtx(c *gin.Context) bool

func (*LangUtils) NameFromEnglish

func (self *LangUtils) NameFromEnglish(some any, lang string) error

func (*LangUtils) NameFromEnglishCtx

func (self *LangUtils) NameFromEnglishCtx(c *gin.Context, list []any) error

func (*LangUtils) NameFromEnglishList

func (self *LangUtils) NameFromEnglishList(some []any, lang string) error

func (*LangUtils) NameFromEnglishOneCtx

func (self *LangUtils) NameFromEnglishOneCtx(c *gin.Context, item any) error

func (*LangUtils) NameFromEnglishPtrLang

func (self *LangUtils) NameFromEnglishPtrLang(lang string, list []any) error

[]ShopPageMetrics

Jump to

Keyboard shortcuts

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