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 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.