Documentation ¶
Index ¶
- Variables
- type Catalog
- func (c *Catalog) AddLocalesFromFS(defaultTag language.Tag, efs fs.FileSystem)
- func (c *Catalog) AddLocalesFromJsonBytes(tag language.Tag, src string, contents []byte)
- func (c *Catalog) LocaleTags() (tags []language.Tag)
- func (c *Catalog) LocaleTagsWithDefault(d language.Tag) (tags []language.Tag)
- func (c *Catalog) MakeGoTextCatalog() (gtc catalog.Catalog, err error)
- type Dictionaries
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 (*Catalog) LocaleTags ¶
func (*Catalog) LocaleTagsWithDefault ¶
type Dictionaries ¶
type Dictionaries interface { catalog.Dictionary Append(d *dictionary) }
Click to show internal directories.
Click to hide internal directories.