translate

package
v0.0.0-...-b5fa7f3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Translations = AltMap(map[string][]string{
		"<3":  {"love"},
		"i":   {"I"},
		"im":  {"I'm"},
		"sry": {"sorry"},
		"bb":  {"bye"},
		"brb": {"back", "I'll be right back"},
		"gl":  {"good luck!"},
		"bbq": {"barbeque"},
		"hf":  {"have fun!"},
		"kfc": {"KFC", "kfc"},
		"np":  {"no problem", "no worries", "shit happens"},
		"ns":  {"nice shot"},
		"ko":  {"KO", "knock out"},
		"wb":  {"welcome back"},
		"icu": {"I see you!"},
		"gg":  {"good game"},
		"thx": {"thanks"},
		":)":  {""},
		":(":  {""},
		":d":  {""},
		"xd":  {""},
		"ez":  {"easy"},
		"ftw": {"for the win"},
		"jk":  {"just kidding"},
		"btw": {"by the way"},
	})

	Substites = AltMap(map[string][]string{
		"ns":              {"nice shot", "goodjob", "decent"},
		"bb":              {"bye1", "bye-ni1", "bye-ni2"},
		"bye":             {"bye1", "bye-ni1", "bye-ni2"},
		"glhf":            {"good luck, have fun!"},
		"gg":              {"GG", "good game", "game", "good", "nice game", "well played"},
		"icu":             {"I see you!", "iseeyou"},
		"icq":             {"list", "look", "honey", "run2"},
		"yw":              {"you're welcome!"},
		"hacker":          {"hacker1", "$name is the hacker!"},
		"bji, bij, bitch": {"bitch1"},
		"hack":            {"hack", "hack the planet!"},
		"usure":           {"I'm sure"},
		"boxxy":           {"isboxxy", "nottrollin", "iamboxxy"},
		"baby":            {"corner"},
		"lol":             {"haha", "lol"},
		"ladydecade":      {"ladydecade1", "ladydecade2", "ladydecade3", "ladydecade4"},
		"zombie":          {"zombie1", "zombie2"},
		"dust":            {"dust1", "dust2"},
		"drunken":         {"drunken1", "drunken2", "drunken2", "drunken4", "drunken5", "drunken6", "drunken7"},
		"run":             {"run1", "run2"},
		"shit":            {"shit1", "shit2", "shit3", "shit4"},
		"THX":             {"THX"},
		"thx":             {"thanks"},
		"wololo":          {"wololo1", "wololo2"},
		"gingle":          {"jinglebell"},
		"wambulance":      {"wambulance1", "wambulance2"},
		"happynewyear":    {"newyear"},
		"lying":           {"lying1", "bjork1"},
		"lala":            {"daria1"},
		"shallow":         {"daria2"},
		"wow":             {"daria3"},
		"nmchance":        {"daria4"},
		"killyou":         {"daria5"},
		"shootme":         {"daria6"},
		"tyvm":            {"daria7"},
		"happycat":        {"happycat1", "happycat2"},
	})
)

Functions

func AltMap

func AltMap[T any](p map[string][]T) map[string]*Alt[T]

func ClanName

func ClanName(username string) (clan, name string)

func Translate

func Translate(name, text string) string

Types

type Alt

type Alt[T any] struct {
	L []T
	// contains filtered or unexported fields
}

func (*Alt[T]) Next

func (a *Alt[T]) Next(def T) (v T)

Jump to

Keyboard shortcuts

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