Documentation ¶
Index ¶
- Variables
- type Backend
- type I18n
- func (i18n *I18n) AddTranslation(translation *Translation)
- func (i18n *I18n) Default(value string) admin.I18n
- func (i18n *I18n) DeleteTranslation(translation *Translation) error
- func (i18n *I18n) InjectQorAdmin(res *admin.Resource)
- func (I18n) ResourceName() string
- func (i18n *I18n) SaveTranslation(translation *Translation) error
- func (i18n *I18n) Scope(scope string) admin.I18n
- func (i18n *I18n) T(locale, key string, args ...interface{}) string
- type Translation
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = "en-US"
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { LoadTranslations() []*Translation SaveTranslation(*Translation) error DeleteTranslation(*Translation) error }
type I18n ¶
type I18n struct { Backends []Backend Translations map[string]map[string]*Translation // contains filtered or unexported fields }
func (*I18n) AddTranslation ¶
func (i18n *I18n) AddTranslation(translation *Translation)
func (*I18n) DeleteTranslation ¶
func (i18n *I18n) DeleteTranslation(translation *Translation) error
func (*I18n) InjectQorAdmin ¶
func (I18n) ResourceName ¶
func (*I18n) SaveTranslation ¶
func (i18n *I18n) SaveTranslation(translation *Translation) error
Click to show internal directories.
Click to hide internal directories.