Documentation
¶
Index ¶
- Constants
- func GetSupportedLanguages() []string
- type Localizer
- func (t Localizer) Get(key string, replacements ...*Replacements) string
- func (t Localizer) GetWithLocale(locale, key string, replacements ...*Replacements) string
- func (t Localizer) SetFallbackLocale(fallback string) Localizer
- func (t Localizer) SetLocale(locale string) Localizer
- func (t Localizer) SetLocales(locale, fallback string) Localizer
- type Replacements
Constants ¶
View Source
const ( LangDefault = LangEn LangEn = "en" LangRu = "ru" )
Variables ¶
This section is empty.
Functions ¶
func GetSupportedLanguages ¶
func GetSupportedLanguages() []string
Types ¶
type Localizer ¶
func (Localizer) GetWithLocale ¶
func (t Localizer) GetWithLocale(locale, key string, replacements ...*Replacements) string
func (Localizer) SetFallbackLocale ¶
func (Localizer) SetLocales ¶
type Replacements ¶
type Replacements map[string]interface{}
Click to show internal directories.
Click to hide internal directories.