Documentation ¶
Index ¶
- func FindMessageFiles(folderPath string) ([]string, error)
- type Localizer
- func (l *Localizer) Languages() []string
- func (l *Localizer) Localize(id string, args ...interface{}) (string, error)
- func (l *Localizer) LocalizeOr(id, fallback string, args ...interface{}) string
- func (l *Localizer) MustLocalize(id string, args ...interface{}) string
- func (l *Localizer) PrimaryLanguage() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMessageFiles ¶
Types ¶
type Localizer ¶
type Localizer struct {
// contains filtered or unexported fields
}
func NewWithBundle ¶
func WithLanguage ¶
func (*Localizer) LocalizeOr ¶
func (*Localizer) MustLocalize ¶
func (*Localizer) PrimaryLanguage ¶
Click to show internal directories.
Click to hide internal directories.