Documentation
¶
Overview ¶
Package localize provides functionality for English and Welsh language content.
Index ¶
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 Lang ¶
type Lang byte
func (Lang) MarshalText ¶ added in v0.912.0
func (*Lang) UnmarshalText ¶ added in v0.1095.0
type LangOptions ¶ added in v0.884.0
type Localizer ¶
type Localizer interface { Concat(list []string, joiner string) string Count(messageID string, count int) string Format(messageID string, data map[string]interface{}) string FormatCount(messageID string, count int, data map[string]any) string FormatDate(t date.TimeOrDate) string FormatDateTime(t time.Time) string FormatTime(t time.Time) string Lang() Lang Possessive(s string) string ShowTranslationKeys() bool SetShowTranslationKeys(s bool) T(messageID string) string }
Click to show internal directories.
Click to hide internal directories.