catalog

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MessagesGoTextName = "messages.gotext.json"
View Source
var OutputGoTextName = "out.gotext.json"

Functions

This section is empty.

Types

type Catalog

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

func NewCatalog

func NewCatalog() (c *Catalog)

func (*Catalog) AddLocalesFromFS

func (c *Catalog) AddLocalesFromFS(defaultTag language.Tag, efs fs.FileSystem)

func (*Catalog) AddLocalesFromJsonBytes

func (c *Catalog) AddLocalesFromJsonBytes(tag language.Tag, src string, contents []byte)

func (*Catalog) LocaleTags

func (c *Catalog) LocaleTags() (tags []language.Tag)

func (*Catalog) LocaleTagsWithDefault

func (c *Catalog) LocaleTagsWithDefault(d language.Tag) (tags []language.Tag)

func (*Catalog) MakeGoTextCatalog

func (c *Catalog) MakeGoTextCatalog() (gtc catalog.Catalog, err error)

type Dictionaries

type Dictionaries interface {
	catalog.Dictionary

	Append(d *dictionary)
}

Jump to

Keyboard shortcuts

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