translations

package
v0.0.0-...-1d800d4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Languages

type Languages []string

func (Languages) Has

func (l Languages) Has(other string) bool

func (Languages) Validate

func (l Languages) Validate() error

type Manager

type Manager interface {
	GetTranslationURL(lng string) (template.URL, error)
	Translate(key string, data languageGetter) (template.HTML, error)
}

func Load

func Load(appName string, defaultLang string, languages Languages) (Manager, error)

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

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