Documentation ¶
Index ¶
- Variables
- func RenderInlineEditAssets(isIncludeJQuery bool, isIncludeExtendAssetLib bool) (template.HTML, error)
- type Backend
- type I18n
- func (i18n *I18n) AddTranslation(translation *Translation)
- func (i18n *I18n) ConfigureQorResource(res resource.Resourcer)
- func (i18n *I18n) Default(value string) admin.I18n
- func (i18n *I18n) DeleteTranslation(translation *Translation) error
- func (i18n *I18n) EnableInlineEdit(isInlineEdit bool) admin.I18n
- 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{}) template.HTML
- type Translation
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = "en-US"
Functions ¶
func RenderInlineEditAssets ¶
func RenderInlineEditAssets(isIncludeJQuery bool, isIncludeExtendAssetLib bool) (template.HTML, error)
Using: http://vitalets.github.io/x-editable/index.html You could use Bootstrap or JQuery UI by set isIncludeExtendAssetLib to false and load files by yourself
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 IsInlineEdit bool // contains filtered or unexported fields }
func (*I18n) AddTranslation ¶
func (i18n *I18n) AddTranslation(translation *Translation)
func (*I18n) ConfigureQorResource ¶
func (*I18n) DeleteTranslation ¶
func (i18n *I18n) DeleteTranslation(translation *Translation) error
func (I18n) ResourceName ¶
func (*I18n) SaveTranslation ¶
func (i18n *I18n) SaveTranslation(translation *Translation) error
Click to show internal directories.
Click to hide internal directories.