Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type I18n ¶
type I18n struct { Provider Provider `inject:""` Locales map[string]map[string]string Logger *logging.Logger `inject:""` }
I18n i18n helper
type Locale ¶
type Locale struct { gorm.Model Lang string `gorm:"not null;type:varchar(8);index"` Code string `gorm:"not null;index;type:VARCHAR(255)"` Message string `gorm:"not null;type:varchar(800)"` }
Locale locale model
type OrmProvider ¶
OrmProvider db provider
func (*OrmProvider) Get ¶
func (p *OrmProvider) Get(lng *language.Tag, code string) string
Get get locale
Click to show internal directories.
Click to hide internal directories.