Versions in this module Expand all Collapse all v1 v1.0.1 Aug 19, 2021 v1.0.0 Jan 22, 2021 Changes in this version + var Default = "en-US" + func RenderInlineEditAssets(isIncludeJQuery bool, isIncludeExtendAssetLib bool) (template.HTML, error) + type Backend interface + DeleteTranslation func(*Translation) error + LoadTranslations func() []*Translation + SaveTranslation func(*Translation) error + type I18n struct + Backends []Backend + FallbackLocales map[string][]string + Resource *admin.Resource + func New(backends ...Backend) *I18n + func (I18n) ResourceName() string + func (i18n *I18n) AddTranslation(translation *Translation) error + func (i18n *I18n) ConfigureQorResource(res resource.Resourcer) + func (i18n *I18n) Default(value string) admin.I18n + func (i18n *I18n) DeleteTranslation(translation *Translation) (err error) + func (i18n *I18n) Fallbacks(locale ...string) admin.I18n + func (i18n *I18n) LoadTranslations() map[string]map[string]*Translation + func (i18n *I18n) SaveTranslation(translation *Translation) error + func (i18n *I18n) Scope(scope string) admin.I18n + func (i18n *I18n) SetCacheStore(cacheStore cache.CacheStoreInterface) + func (i18n *I18n) T(locale, key string, args ...interface{}) template.HTML + type Translation struct + Backend Backend + Key string + Locale string + Value string