Documentation ¶
Index ¶
- func DefaultMessage(m *Message) string
- type Bundle
- func (b *Bundle) AddMessages(tag language.Tag, messages ...*Message) error
- func (b *Bundle) LanguageTags() []language.Tag
- func (b *Bundle) LoadBytes(data []byte, name string) error
- func (b *Bundle) LoadFS(fs fs.FS, paths []string) error
- func (b *Bundle) MustAddMessages(tag language.Tag, messages ...*Message)
- func (b *Bundle) MustLoadBytes(data []byte, name string)
- func (b *Bundle) MustLoadFS(fs fs.FS, paths ...string)
- type LocalizeConfig
- type Localizer
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMessage ¶
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
func (*Bundle) AddMessages ¶
func (*Bundle) LanguageTags ¶
func (*Bundle) MustAddMessages ¶
func (*Bundle) MustLoadBytes ¶
type LocalizeConfig ¶
type LocalizeConfig = i18n.LocalizeConfig
type Localizer ¶
func NewLocalizer ¶
Click to show internal directories.
Click to hide internal directories.