Documentation ¶
Overview ¶
Package i18n includes internationalization related manipulations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Locales = map[string]locale{}
All locales.
Functions ¶
func Get ¶
func Get(locale, key string) interface{}
Get gets message with the specified locale and key.
func GetLocalesNames ¶
func GetLocalesNames() []string
GetLocalesNames gets names of all locales. Returns ["zh_CN", "en_US"] for example.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.