Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplate ¶
GetTemplate is used to fetch a translation
func GetTranslator ¶
GetTranslator returns a translator bound to a language
func RegisterLocale ¶
func RegisterLocale(lang string, register TranslationConfig)
RegisterLocale registers a possible locale in the server
Types ¶
type Translation ¶
Translation translates all the things
type TranslationConfig ¶
TranslationConfig is used to initalize a translation
Click to show internal directories.
Click to hide internal directories.