Documentation ¶
Index ¶
- Constants
- Variables
- func GetBundle() *i18n.Bundle
- func GetLanguages() map[string]string
- func InitLang(localePath, defaultLang string)
- func LoadTranslations(localePath, defaultLang string) *i18n.Bundle
- func LocalizeMessage(args ...interface{}) string
- func OwoToml(path, output string) error
- func Owoify(input string) string
Constants ¶
View Source
const ( DefaultLang = "en" DefaultLocalePath = "locales/" )
Variables ¶
View Source
var OwoFaces = []string{
"OwO", "Owo", "owO", "ÓwÓ", "ÕwÕ", "@w@", "ØwØ", "øwø", "uwu", "☆w☆", "✧w✧", "♥w♥", "゜w゜", "◕w◕", "ᅌwᅌ", "◔w◔", "ʘwʘ", "⓪w⓪", "(owo)",
}
Functions ¶
func GetLanguages ¶
func LoadTranslations ¶
func LocalizeMessage ¶
func LocalizeMessage(args ...interface{}) string
func LocalizeMessage(message *i18n.Message, templateData map[string]interface{}) string {
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.