Documentation ¶
Index ¶
- type ContextFactoryPlugin
- type TranslatorPlugin
- func (p *TranslatorPlugin) Load()
- func (p *TranslatorPlugin) ProvideOptions() []string
- func (p *TranslatorPlugin) ProvidesOptions(options *plug.Options) error
- func (p *TranslatorPlugin) RequireOptions() []string
- func (p *TranslatorPlugin) SetLog(log logging.Logger)
- func (p *TranslatorPlugin) Translator() *i18nmod.Translator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextFactoryPlugin ¶
type ContextFactoryPlugin struct {
TranslatorKey, ContextFactoryKey string
}
func (*ContextFactoryPlugin) ProvideOptions ¶
func (p *ContextFactoryPlugin) ProvideOptions() []string
func (*ContextFactoryPlugin) ProvidesOptions ¶
func (p *ContextFactoryPlugin) ProvidesOptions(options *plug.Options)
func (*ContextFactoryPlugin) RequireOptions ¶
func (p *ContextFactoryPlugin) RequireOptions() []string
type TranslatorPlugin ¶
type TranslatorPlugin struct { TranslatorKey string LocaleKey string BackendsKey []string PreLoad []func() // contains filtered or unexported fields }
func (*TranslatorPlugin) Load ¶
func (p *TranslatorPlugin) Load()
func (*TranslatorPlugin) ProvideOptions ¶
func (p *TranslatorPlugin) ProvideOptions() []string
func (*TranslatorPlugin) ProvidesOptions ¶
func (p *TranslatorPlugin) ProvidesOptions(options *plug.Options) error
func (*TranslatorPlugin) RequireOptions ¶
func (p *TranslatorPlugin) RequireOptions() []string
func (*TranslatorPlugin) SetLog ¶
func (p *TranslatorPlugin) SetLog(log logging.Logger)
func (*TranslatorPlugin) Translator ¶
func (p *TranslatorPlugin) Translator() *i18nmod.Translator
Click to show internal directories.
Click to hide internal directories.