Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
Backend DB backend
func (*Backend) DeleteTranslation ¶
func (backend *Backend) DeleteTranslation(t *i18n.Translation) error
DeleteTranslation delete translation into DB backend
func (*Backend) LoadTranslations ¶
func (backend *Backend) LoadTranslations() (translations []*i18n.Translation)
LoadTranslations load translations from DB backend
func (*Backend) SaveTranslation ¶
func (backend *Backend) SaveTranslation(t *i18n.Translation) error
SaveTranslation save translation into DB backend
type Translation ¶
type Translation struct { Locale string `sql:"size:12;"` Key string `sql:"size:4294967295;"` Value string `sql:"size:4294967295"` }
Translation is a struct used to save translations into databae
Click to show internal directories.
Click to hide internal directories.