Documentation ¶
Overview ¶
Code generated by "enumerator -type Lang -linecomment -empty"; DO NOT EDIT.
Index ¶
- Variables
- func LowerFirst(s string) string
- type Bundle
- type Lang
- type LangOptions
- type Localizer
- func (l *Localizer) Concat(list []string, joiner string) string
- func (l *Localizer) Count(messageID string, count int) string
- func (l *Localizer) Format(messageID string, data map[string]interface{}) string
- func (l *Localizer) FormatCount(messageID string, count int, data map[string]any) string
- func (l *Localizer) FormatDate(t date.TimeOrDate) string
- func (l *Localizer) FormatDateTime(t time.Time) string
- func (l *Localizer) FormatTime(t time.Time) string
- func (l *Localizer) Possessive(s string) string
- func (l *Localizer) SetShowTranslationKeys(s bool)
- func (l *Localizer) ShowTranslationKeys() bool
- func (l *Localizer) T(messageID string) string
- type Messages
Constants ¶
This section is empty.
Variables ¶
View Source
var LangValues = LangOptions{ En: En, Cy: Cy, }
Functions ¶
func LowerFirst ¶ added in v0.912.0
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
func (*Bundle) LoadMessageFile ¶ added in v0.940.0
type LangOptions ¶ added in v0.884.0
type Localizer ¶
type Localizer struct { Lang Lang // contains filtered or unexported fields }
func (*Localizer) FormatCount ¶
func (*Localizer) FormatDate ¶ added in v0.842.0
func (l *Localizer) FormatDate(t date.TimeOrDate) string
func (*Localizer) FormatDateTime ¶ added in v0.842.0
func (*Localizer) FormatTime ¶ added in v0.1054.0
func (*Localizer) Possessive ¶
func (*Localizer) SetShowTranslationKeys ¶
func (*Localizer) ShowTranslationKeys ¶
Click to show internal directories.
Click to hide internal directories.