plugins

package
v0.0.0-...-5127ed8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL