Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAcceptLanguage ¶
ParseAcceptLanguage Sample Accept-Language: ru;q=0.9, fr-CH, fr;q=0.8, en;q=0.7, *;q=0.5
Types ¶
type ErrorMessage ¶
func (*ErrorMessage) DetailsToString ¶
func (em *ErrorMessage) DetailsToString() string
type LocaleConfig ¶
type LocaleConfig struct { Messages map[string]Message `yaml:"messages"` Errors map[string]ErrorMessage `yaml:"errors"` }
type Translator ¶
func NewTranslator ¶
func NewTranslator(opt TranslatorOptions) (Translator, error)
Click to show internal directories.
Click to hide internal directories.