translation

package
v0.0.0-...-055c042 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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.

Jump to

Keyboard shortcuts

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