locale

package
v0.0.0-...-b16daea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLang = "en"

Variables

View Source
var LocalePath = ""
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 GetBundle

func GetBundle() *i18n.Bundle

func GetLanguages

func GetLanguages() map[string]string

func InitLang

func InitLang(localePath, lang string)

func LoadTranslations

func LoadTranslations() *i18n.Bundle

func LocalizeMessage

func LocalizeMessage(args ...interface{}) string

func LocalizeMessage(message *i18n.Message, templateData map[string]interface{}) string {

func OwoToml

func OwoToml(path, output string) error

func Owoify

func Owoify(input string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL