locale

package
v0.0.0-...-42aae50 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Localizer

type Localizer struct {
	i18n.Localizer
	// contains filtered or unexported fields
}

func NewLocalizer

func NewLocalizer(bundle *i18n.Bundle, lang string, shouldBeSuccinct bool) *Localizer

func (*Localizer) Get

func (l *Localizer) Get(ids ...resources.StringID) string

func (*Localizer) GetTemplated

func (l *Localizer) GetTemplated(id resources.StringID, templateData interface{}) string

func (*Localizer) Month

func (l *Localizer) Month(m int) string

func (*Localizer) Weekday

func (l *Localizer) Weekday(weekday time.Weekday) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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