i18n

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotSupportedForm = []notSupported{
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
}

since `validForm` method is not exposed by plural package, we need to do this manually

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