Documentation ¶
Index ¶
- Constants
- func FormatMessage(c *gin.Context, message *Message, args map[string]interface{}) string
- func FormatText(c *gin.Context, message *Message) string
- func GetLocalizer(c *gin.Context) (*i18n.Localizer, bool)
- func MustFormat(c *gin.Context, lc *i18n.LocalizeConfig) string
- func MustLocalizer(c *gin.Context) *i18n.Localizer
- func Serve(bundle *Bundle) gin.HandlerFunc
- func SetLocalizer(c *gin.Context, l *i18n.Localizer)
- type Bundle
- type Data
- type LocalizeConfig
- type Message
Constants ¶
View Source
const (
GinI18nKey = "suisrc/gin-i18n"
)
定义上下文中的键
Variables ¶
This section is empty.
Functions ¶
func FormatMessage ¶
FormatMessage fm
Types ¶
Click to show internal directories.
Click to hide internal directories.