Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.New(`Unsupported`)
Functions ¶
func RegisterTranslations ¶
func Set ¶
Set sets configurations parameters to given value paramName is the name of the parameter, can be `language` or `location`. Seconds parameter is value of the configuration. For parameter `language` can be `ru` or `en`
Types ¶
type Translations ¶
type Translations struct {
// contains filtered or unexported fields
}
func NewTranslations ¶
func NewTranslations(source map[string]string) *Translations
func (*Translations) T ¶
func (t *Translations) T(key string) string
Click to show internal directories.
Click to hide internal directories.