Documentation ¶
Index ¶
- Variables
- func AddLocale(translator locales.Translator)
- func Initialize()
- func Locale(c *gin.Context) string
- func SetLocale(c *gin.Context, locale string)
- func Translate(messageID string, data map[string]interface{}, langName string) string
- func Translator(translator string) (ut.Translator, bool)
- type UnmarshalFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalizerMap map[string]*i18n.Localizer
View Source
var UniversalTranslator *ut.UniversalTranslator
Functions ¶
func AddLocale ¶
func AddLocale(translator locales.Translator)
func Initialize ¶
func Initialize()
func Translator ¶
func Translator(translator string) (ut.Translator, bool)
Types ¶
type UnmarshalFunc ¶
type UnmarshalFunc = i18n.UnmarshalFunc
Click to show internal directories.
Click to hide internal directories.