Help us shape the future of Go! Take the 2026 Go Developer Survey

translator

package
v0.58.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 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