Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AcceptLanguage *i18n.Localizer Bundle *i18n.Bundle )
Functions ¶
func Initialize ¶
Types ¶
type MockTranslator ¶
func (*MockTranslator) GetLocalizer ¶
func (r *MockTranslator) GetLocalizer(lang string) *i18n.Localizer
type Translation ¶
type Translation struct {
// contains filtered or unexported fields
}
func NewTranslation ¶
func NewTranslation(conf config.App) *Translation
func (*Translation) GetLocalizer ¶
func (r *Translation) GetLocalizer(lang string) *i18n.Localizer
GetLocalizer initializes the localizer with the desired language.
Click to show internal directories.
Click to hide internal directories.