Documentation ¶
Index ¶
- Variables
- func GetDBColumns(values []string) ([]string, error)
- func GetLocales() *locales
- func GetTranslator() func(id string, args ...interface{}) string
- func Init()
- func LoadTranslations() error
- func SetLocalizer(lang string)
- func TranslateSlice(ids []string, args ...[]interface{}) []string
- type Interface
- type Translator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AvailableLangs = containers.NewStringSet() CurrentLang = DefaultLang DefaultLang = language.English )
View Source
var Localizers map[language.Tag]*i18n.Localizer
Functions ¶
func GetDBColumns ¶
func GetLocales ¶
func GetLocales() *locales
func GetTranslator ¶
func LoadTranslations ¶
func LoadTranslations() error
func SetLocalizer ¶
func SetLocalizer(lang string)
func TranslateSlice ¶
Types ¶
type Translator ¶
Click to show internal directories.
Click to hide internal directories.