1 {{ define "localeslist" }}
8 // LocaleFunc is the function to run in order to create
9 // a new instance of a given locale
10 type LocaleFunc func() locales.Translator
12 // LocaleMap is map of locale string to instance function
13 type LocaleMap map[string]LocaleFunc
23 localeMap = map[string]LocaleFunc{
29 // Map returns the map of locales to instance New function
30 func Map() LocaleMap {