i18nloader

package
v0.0.0-...-d1346dc Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLanguages

func GetLanguages(w io.Writer, r *http.Request) (langs []string)

func GetMainLanguage

func GetMainLanguage(w io.Writer, r *http.Request) string

func Init

func Init() (err error)

func ParseDate

func ParseDate(t time.Time, langs []string) string

func TimeIsIndeterminate

func TimeIsIndeterminate(t time.Time) bool

Types

type SimplifiedLocalizer

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

func GetLocalizer

func GetLocalizer(w io.Writer, r *http.Request) SimplifiedLocalizer

func (SimplifiedLocalizer) Localize

func (l SimplifiedLocalizer) Localize(str string, subs ...string) string

Jump to

Keyboard shortcuts

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