lang

package
v0.1.0-nightly.1551956163 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 Locale

func Locale(c *gin.Context) string

func SetLocale

func SetLocale(c *gin.Context, locale string)

func Translate

func Translate(messageID string, data map[string]interface{}, langName string) string

func Translator

func Translator(translator string) (ut.Translator, bool)

Types

type UnmarshalFunc

type UnmarshalFunc = i18n.UnmarshalFunc

Jump to

Keyboard shortcuts

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