translation

package
v0.0.0-...-d7ff5e6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bundle *i18n.Bundle

Bundle var

Functions

func AddMessage

func AddMessage(locale string, messages []*i18n.Message) error

AddMessage func

func Setup

func Setup()

Setup func

Types

type Localizer

type Localizer struct {
	Localizer *i18n.Localizer
	Language  string
}

Localizer struct

func NewLocalizer

func NewLocalizer(langCode string) *Localizer

NewLocalizer func

func (*Localizer) Trans

func (l *Localizer) Trans(text string, template map[string]interface{}) string

Trans func

Jump to

Keyboard shortcuts

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