Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CtxTranslator ¶
func CtxTranslator(ctx context.Context) hexa.Translator
func NewEmptyDriver ¶
func NewEmptyDriver() hexa.Translator
func NewI18nDriver ¶
func NewI18nDriver(bundle *i18n.Bundle, localizer *i18n.Localizer, fallbackLangs []string) hexa.Translator
NewI18nDriver return new instance of i18n driver to use as hexa Translator.
func NewKeyTranslator ¶
func NewKeyTranslator() hexa.Translator
NewKeyTranslator returns keyTranslator that just returns key as the translation result.
func SetGlobal ¶
func SetGlobal(t hexa.Translator)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.