Documentation
¶
Overview ¶
Package lang provides the locale files used by Hypera Development's Axolotl Discord bot.
Note: This module is not designed for use in other software, and use outside of Axolotl is not supported.
Index ¶
- func Bundle() *i18n.Bundle
- func LoadLocales() error
- func Localize(locale discordgo.Locale, id string) string
- func LocalizePlural(locale discordgo.Locale, id string, count any) string
- func LocalizePluralWithData(locale discordgo.Locale, id string, count any, data Data) string
- func LocalizeWithData(locale discordgo.Locale, id string, data Data) string
- func SupportedLocales() []discordgo.Locale
- type Data
- type Localizer
- func (l *Localizer) Localize(id string) string
- func (l *Localizer) LocalizePlural(id string, count any) string
- func (l *Localizer) LocalizePluralWithData(id string, count any, data Data) string
- func (l *Localizer) LocalizeWithData(id string, data Data) string
- func (l *Localizer) Section(name string) *Localizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadLocales ¶
func LoadLocales() error
func LocalizePluralWithData ¶
func SupportedLocales ¶
Types ¶
type Localizer ¶
func GetLocalizer ¶
func (*Localizer) LocalizePluralWithData ¶
func (*Localizer) LocalizeWithData ¶
Click to show internal directories.
Click to hide internal directories.