i18n

package
v2.339.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	Builder *catalog.Builder
	// contains filtered or unexported fields
}

func NewCatalog

func NewCatalog(defaultlang language.Tag) *Catalog

func (*Catalog) NewPrinter

func (c *Catalog) NewPrinter(preferedlang ...language.Tag) *message.Printer

func (*Catalog) Populate

func (c *Catalog) Populate(f fs.FS) error

type ContentKind

type ContentKind int
const (
	ContentKindMessage ContentKind = iota
	ContentKindNested
)

type ContentNode

type ContentNode struct {
	Kind ContentKind

	Message string
	Nested  map[string]*ContentNode
}

func (*ContentNode) UnmarshalJSON

func (n *ContentNode) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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