translation

package
v0.0.0-...-0f16109 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLanguages = []Language{
	{language.English, "pkg/translation/en.json"},
	{language.Persian, "pkg/translation/fa.json"},
}

Functions

This section is empty.

Types

type Language

type Language struct {
	Tag      language.Tag
	FilePath string
}

type Translate

type Translate struct {
	// contains filtered or unexported fields
}

func New

func New(languages ...Language) (*Translate, error)

func (Translate) TranslateMessage

func (t Translate) TranslateMessage(messageID string, acceptLanguage ...string) string

Jump to

Keyboard shortcuts

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