translator

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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