Documentation ¶
Index ¶
- func PT(req *http.Request, module ModuleKey, prefix string, key string, args ...string) (r string)
- func T(req *http.Request, module ModuleKey, key string, args ...string) (r string)
- type Builder
- func (b *Builder) EnsureLanguage(in http.Handler) (out http.Handler)
- func (b *Builder) GetCookieName() string
- func (b *Builder) GetCurrentLangFromCookie(r *http.Request) (lang string)
- func (b *Builder) GetQueryName() string
- func (b *Builder) GetSupportLanguages() []language.Tag
- func (b *Builder) GetSupportLanguagesFromRequest(R *http.Request) []language.Tag
- func (b *Builder) GetSupportLanguagesFromRequestFunc(v func(R *http.Request) []language.Tag) (r *Builder)
- func (b *Builder) RegisterForModule(lang language.Tag, module ModuleKey, msg Messages) (r *Builder)
- func (b *Builder) SupportLanguages(vs ...language.Tag) (r *Builder)
- type DynaBuilder
- type Messages
- type ModuleKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) EnsureLanguage ¶
func (*Builder) GetCookieName ¶
func (*Builder) GetCurrentLangFromCookie ¶
func (*Builder) GetQueryName ¶
func (*Builder) GetSupportLanguages ¶
func (*Builder) GetSupportLanguagesFromRequest ¶
func (*Builder) GetSupportLanguagesFromRequestFunc ¶
func (*Builder) RegisterForModule ¶
type DynaBuilder ¶
type DynaBuilder struct {
// contains filtered or unexported fields
}
func DynaNew ¶
func DynaNew() (r *DynaBuilder)
func (*DynaBuilder) HaveMissingKeys ¶
func (d *DynaBuilder) HaveMissingKeys() bool
func (*DynaBuilder) Language ¶
func (d *DynaBuilder) Language(lang string) (r *DynaBuilder)
func (*DynaBuilder) PrettyMissingKeys ¶
func (d *DynaBuilder) PrettyMissingKeys() string
Click to show internal directories.
Click to hide internal directories.