hexatranslator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 5 Imported by: 32

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.

Jump to

Keyboard shortcuts

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