resources

package
v0.0.0-...-a6764fa Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Translator *ut.UniversalTranslator
)

Functions

func GetMessage

func GetMessage(context *gin.Context, key LocalizableMessageKey) string

func GetMessageIncorrectPassword

func GetMessageIncorrectPassword(context *gin.Context) string

func GetMessageInternalServerError

func GetMessageInternalServerError(context *gin.Context) string

func GetMessageInvalidData

func GetMessageInvalidData(context *gin.Context) string

func GetMessageProfileNotFound

func GetMessageProfileNotFound(context *gin.Context) string

func GetMessageUserNotFound

func GetMessageUserNotFound(context *gin.Context) string

func Localize

func Localize(rootPath string) gin.HandlerFunc

Types

type LocalizableMessageKey

type LocalizableMessageKey string
const (
	MsgInvalidData         LocalizableMessageKey = "invalid_data"
	MsgUserNotFound        LocalizableMessageKey = "user_not_found"
	MsgProfileNotFound     LocalizableMessageKey = "profile_not_found"
	MsgIncorrectPassword   LocalizableMessageKey = "incorrect_password"
	MsgInternalServerError LocalizableMessageKey = "internal_server_error"
)

Jump to

Keyboard shortcuts

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