localization

package
v0.0.0-...-bd1bc83 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	// contains filtered or unexported fields
}

func Init

func Init() (Bundle, error)

func (*Bundle) LangSwitch

func (b *Bundle) LangSwitch(tag string) (Lang, error)

type Button

type Button string
const (
	ButtonBack         Button = "buttonBack"
	ButtonEN           Button = "buttonEN"
	ButtonRU           Button = "buttonRU"
	ButtonSettingsLang Button = "buttonSettingsLang"
)

func (Button) String

func (b Button) String() string

type Lang

type Lang struct {
	// contains filtered or unexported fields
}

func (*Lang) BotButton

func (l *Lang) BotButton(button Button) string

func (*Lang) MessageCreate

func (l *Lang) MessageCreate(tag string, in any) (string, error)

type Message

type Message string
const (
	MsgBye               Message = "msgBye"
	MsgHello             Message = "msgHello"
	MsgInitEnd           Message = "msgInitEnd"
	MsgInitLang          Message = "msgInitLang"
	MsgLangSelect        Message = "msgLangSelect"
	MsgSessionConflict   Message = "msgSessionConflict"
	MsgSettings          Message = "msgSettings"
	MsgUserNotRegistered Message = "msgUserNotRegistered"
)

func (Message) String

func (m Message) String() string

Jump to

Keyboard shortcuts

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