locales

package
v0.0.0-...-bc1f52c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locales

type Locales struct {
	Bundle *i18n.Bundle
}

func New

func New(cfg config.Locales) *Locales

func (*Locales) Loc

func (l *Locales) Loc(r *http.Request) *i18n.Localizer

func (*Locales) LocID

func (l *Locales) LocID(r *http.Request, ID string) string

Jump to

Keyboard shortcuts

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