Documentation ¶
Index ¶
- Variables
- type CCatalog
- func (c *CCatalog) AddCatalog(others ...catalog.Catalog)
- func (c *CCatalog) AddLocalesFromFS(defaultTag language.Tag, efs beFs.FileSystem)
- func (c *CCatalog) AddLocalesFromJsonBytes(tag language.Tag, src string, contents []byte)
- func (c *CCatalog) LocaleTags() (tags []language.Tag)
- func (c *CCatalog) LocaleTagsWithDefault(d language.Tag) (tags []language.Tag)
- func (c *CCatalog) MakeGoTextCatalog() (gtc catalog.Catalog, err error)
- type Catalog
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultFileName = "out.gotext.json"
)
Functions ¶
This section is empty.
Types ¶
type CCatalog ¶ added in v0.5.0
type CCatalog struct {
// contains filtered or unexported fields
}
func (*CCatalog) AddCatalog ¶ added in v0.5.0
func (*CCatalog) AddLocalesFromFS ¶ added in v0.5.0
func (c *CCatalog) AddLocalesFromFS(defaultTag language.Tag, efs beFs.FileSystem)
func (*CCatalog) AddLocalesFromJsonBytes ¶ added in v0.5.0
func (*CCatalog) LocaleTags ¶ added in v0.5.0
func (*CCatalog) LocaleTagsWithDefault ¶ added in v0.5.0
type Catalog ¶
type Catalog interface { AddCatalog(others ...catalog.Catalog) AddLocalesFromFS(defaultTag language.Tag, efs beFs.FileSystem) AddLocalesFromJsonBytes(tag language.Tag, src string, contents []byte) LocaleTags() (tags []language.Tag) LocaleTagsWithDefault(d language.Tag) (tags []language.Tag) MakeGoTextCatalog() (gtc catalog.Catalog, err error) }
Click to show internal directories.
Click to hide internal directories.