Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLocales ¶
func InitLocales(optionsDir OptionsDir, optionsLocale OptionsLocale)
InitLocales loads the locales
Types ¶
type LangType ¶
type LangType struct {
Lang, Name string // these fields are used directly in templates: {{range .AllLangs}}{{.Lang}}{{.Name}}{{end}}
}
LangType represents a lang type
type Locale ¶
type Locale interface { Language() string Tr(string, ...interface{}) string TrN(cnt interface{}, key1, keyN string, args ...interface{}) string }
Locale represents an interface to translation
type OptionsDir ¶
type OptionsLocale ¶
Click to show internal directories.
Click to hide internal directories.