Documentation
¶
Index ¶
- func LoadLocale(locale, contextName string, rawPO []byte)
- func LocalizeTime(t time.Time, locale, layout string) string
- func Translate(key, locale, contextName string, vars ...interface{}) string
- func Translator(locale, contextName string) func(key string, vars ...interface{}) string
- func TranslatorHTML(locale, contextName string) func(key string, vars ...interface{}) template.HTML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadLocale ¶
LoadLocale creates the translation object for a locale from the content of a .po file
func LocalizeTime ¶
LocalizeTime transforms a date+time in a string for the given locale. The layout is in the same format as the one given to time.Format.
func Translator ¶
Translator returns a translation function of the locale specified
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.