translator

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 2 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 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