translation

package
v0.0.0-...-8b33ee5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextKeyLocalizer string = "localizer" // Use string for set to echo context
)
View Source
const (
	TranslationNotFoundMessage = "translation_not_found"
)

Variables

This section is empty.

Functions

func GetBundle

func GetBundle() *i18n.Bundle

func GetLocallizer

func GetLocallizer(ctx context.Context) (*i18n.Localizer, bool)

func Load

func Load() error

func TranslateKey

func TranslateKey(ctx context.Context, key string) (string, error)

func TranslateKeyData

func TranslateKeyData(ctx context.Context, key string, data any) (string, error)

Types

This section is empty.