Documentation ¶
Overview ¶
en-US.go provides the localized messages for English in the United States
The localize package provides support for handling different languages and cultures
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var En_US = `` /* 269-byte string literal not displayed */
View Source
var ( // T is the translate function for the default locale T i18n.TranslateFunc )
Functions ¶
func LoadFiles ¶
LoadFiles looks for i18n folders inside the current directory and the GOPATH to find translation files to load
func LoadJSON ¶
LoadJSON takes a json document of translations and manually loads them into the system
func NewTranslation ¶
func NewTranslation(userLocale string, defaultLocale string) (t i18n.TranslateFunc, err error)
NewTranslation obtains a translation function object for the specified locales
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.