locale

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 GetBundle

func GetBundle() *i18n.Bundle

func GetLanguages

func GetLanguages() map[string]string

func InitLang

func InitLang(localePath, defaultLang string)

func LoadTranslations

func LoadTranslations(localePath, defaultLang string) *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