Documentation
¶
Overview ¶
Package texts is the Go clients' catalog of the client strings the daemon serves.
Index ¶
- type Catalog
- func (c *Catalog) Fill(word string, vars map[string]string) string
- func (c *Catalog) Locale() string
- func (c *Catalog) Number(n int) string
- func (c *Catalog) T(key string, params map[string]any) string
- func (c *Catalog) TN(key string, n int, params map[string]any) string
- func (c *Catalog) Time(t time.Time, style string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
Catalog reads client strings by key, in the locale the daemon served them in.
func (*Catalog) Fill ¶
Fill is a plugin's word with each {{.name}} replaced by vars[name], and each {{plural .name "one" "…" "other" "…"}} by the form of vars[name] in the catalog's locale, as the cockpit fills a word.