Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTranslator ¶
func GetTranslator(ctx *gin.Context) (ut.Translator, bool)
GetTranslator returns the translator from the context.
func RegisterTranslatorFor ¶ added in v0.39.0
func RegisterTranslatorFor(v *validator.Validate) ut.Translator
func SetTranslatorMiddleware ¶
func SetTranslatorMiddleware(t ut.Translator) gin.HandlerFunc
SetTranslatorMiddleware is a middleware that adds translator to the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.