t

package
v0.0.0-...-e9f9a1f Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DE = map[Key]string{}/* 147 elements not displayed */
View Source
var EN = map[Key]string{}/* 149 elements not displayed */
View Source
var ES = map[Key]string{}/* 144 elements not displayed */
View Source
var RU = map[Key]string{}/* 144 elements not displayed */

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	DefaultLanguage string
	Translations    map[string]map[Key]*template.Template
	Funcs           template.FuncMap
}

func NewBundle

func NewBundle(defaultLanguage string) Bundle

func (*Bundle) AddFunc

func (bundle *Bundle) AddFunc(name string, fn interface{})

func (*Bundle) AddLanguage

func (bundle *Bundle) AddLanguage(lang string, translations map[Key]string) error

func (*Bundle) Check

func (bundle *Bundle) Check() (missing map[string][]Key)

func (*Bundle) Render

func (bundle *Bundle) Render(lang string, key Key, data interface{}) (string, error)

type Key

type Key string
const (
	NO          Key = "No"
	YES         Key = "Yes"
	CANCEL      Key = "Cancel"
	CANCELED    Key = "Canceled"
	COMPLETED   Key = "Completed"
	CONFIRM     Key = "Confirm"
	PAYAMOUNT   Key = "PayAmount"
	FAILURE     Key = "Failure"
	PROCESSING  Key = "Processing"
	WITHDRAW    Key = "Withdraw"
	ERROR       Key = "Error"
	CHECKING    Key = "Checking"
	TXPENDING   Key = "TxPending"
	TXCANCELED  Key = "TxCanceled"
	UNEXPECTED  Key = "Unexpected"
	MUSTBEADMIN Key = "MustBeAdmin"
	MUSTBEGROUP Key = "MustBeGroup"

	CLAIMFAILED Key = "ClaimFailed"

	CALLBACKCOINFLIPWINNER Key = "CallbackCoinflipWinner"
	CALLBACKWINNER         Key = "CallbackWinner"
	CALLBACKERROR          Key = "CallbackError"
	CALLBACKEXPIRED        Key = "CallbackExpired"
	CALLBACKATTEMPT        Key = "CallbackAttempt"
	CALLBACKSENDING        Key = "CallbackSending"

	INLINEINVOICERESULT  Key = "InlineInvoiceResult"
	INLINEGIVEAWAYRESULT Key = "InlineGiveawayResult"
	INLINEGIVEFLIPRESULT Key = "InlineGiveflipResult"
	INLINECOINFLIPRESULT Key = "InlineCoinflipResult"
	INLINEHIDDENRESULT   Key = "InlineHiddenResult"

	LNURLUNSUPPORTED          Key = "LnurlUnsupported"
	LNURLERROR                Key = "LnurlError"
	LNURLAUTHSUCCESS          Key = "LnurlAuthSuccess"
	LNURLPAYPROMPT            Key = "LnurlPayPrompt"
	LNURLPAYPROMPTCOMMENT     Key = "LnurlPayPromptComment"
	LNURLPAYAMOUNTSNOTICE     Key = "LnurlPayAmountsNotice"
	LNURLPAYSUCCESS           Key = "LnurlPaySuccess"
	LNURLPAYMETADATA          Key = "LnurlPayMetadata"
	LNURLBALANCECHECKCANCELED Key = "LnurlBalanceCheckCanceled"

	TICKETSET         Key = "TicketSet"
	TICKETMESSAGE     Key = "TicketMessage"
	TICKETUSERALLOWED Key = "TicketUserAllowed"

	RENAMABLEMSG      Key = "RenamableMsg"
	RENAMEPROMPT      Key = "RenamePrompt"
	GROUPNOTRENAMABLE Key = "GroupNotRenamable"

	INTERNALPAYMENTUNEXPECTED Key = "InternalPaymentUnexpected"
	PAYMENTFAILED             Key = "PaymentFailed"
	PAIDMESSAGE               Key = "PaidMessage"
	DBERROR                   Key = "DBError"
	INSUFFICIENTBALANCE       Key = "InsufficientBalance"
	RATELIMIT                 Key = "RateLimit"
	OVERQUOTA                 Key = "OverQuota"

	PAYMENTRECEIVED      Key = "PaymentReceived"
	FAILEDTOSAVERECEIVED Key = "FailedToSaveReceived"

	ONCHAINSTATUS  Key = "OnchainStatus"
	ONCHAINDEPOSIT Key = "OnchainDeposit"

	SMSSTATUS  Key = "SmsStatus"
	SMSRECEIVE Key = "SmsReceive"

	SPAMMYMSG             Key = "SpammyMsg"
	COINFLIPSENABLEDMSG   Key = "CoinflipsEnabledMsg"
	LANGUAGEMSG           Key = "LanguageMsg"
	FREEJOIN              Key = "FreeJoin"
	EXPENSIVEMSG          Key = "ExpensiveMsg"
	EXPENSIVENOTIFICATION Key = "ExpensiveNotification"
	FREETALK              Key = "FreeTalk"

	APPBALANCE Key = "AppBalance"

	HELPINTRO   Key = "HelpIntro"
	HELPSIMILAR Key = "HelpSimilar"
	HELPMETHOD  Key = "HelpMethod"

	RECEIVEHELP Key = "receiveHelp"

	PAYHELP Key = "payHelp"

	SENDHELP Key = "sendHelp"

	TRANSACTIONSHELP Key = "transactionsHelp"

	BALANCEHELP Key = "balanceHelp"

	TRIANGLESHELP Key = "trianglesHelp"

	FINEHELP    Key = "fineHelp"
	FINEMESSAGE Key = "FineMessage"
	FINEFAILURE Key = "FineFailure"
	FINESUCCESS Key = "FineSuccess"

	GIVEAWAYHELP    Key = "giveawayHelp"
	GIVEAWAYMSG     Key = "GiveAwayMsg"
	GIVEAWAYCLAIM   Key = "GiveAwayClaim"
	SATSGIVENPUBLIC Key = "GiveawaySatsGivenPublic"

	COINFLIPHELP      Key = "coinflipHelp"
	COINFLIPWINNERMSG Key = "CoinflipWinnerMsg"
	COINFLIPGIVERMSG  Key = "CoinflipGiverMsg"
	COINFLIPAD        Key = "CoinflipAd"
	COINFLIPJOIN      Key = "CoinflipJoin"

	GIVEFLIPHELP      Key = "giveflipHelp"
	GIVEFLIPMSG       Key = "GiveFlipMsg"
	GIVEFLIPWINNERMSG Key = "GiveflipWinnerMsg"
	GIVEFLIPAD        Key = "GiveflipAd"
	GIVEFLIPJOIN      Key = "GiveflipJoin"

	FUNDRAISEHELP        Key = "fundraiseHelp"
	FUNDRAISEAD          Key = "FundraiseAd"
	FUNDRAISEJOIN        Key = "FundraiseJoin"
	FUNDRAISECOMPLETE    Key = "FundraiseComplete"
	FUNDRAISERECEIVERMSG Key = "FundraiseReceiverMsg"
	FUNDRAISEGIVERMSG    Key = "FundraiseGiverMsg"

	LIGHTNINGATMHELP       Key = "lightningatmHelp"
	BLUEWALLETHELP         Key = "bluewalletHelp"
	APIPASSWORDUPDATEERROR Key = "APIPasswordUpdateError"
	APICREDENTIALS         Key = "APICredentials"

	HIDEHELP             Key = "hideHelp"
	REVEALHELP           Key = "revealHelp"
	HIDDENREVEALBUTTON   Key = "HiddenRevealButton"
	HIDDENDEFAULTPREVIEW Key = "HiddenDefaultPreview"
	HIDDENWITHID         Key = "HiddenWithId"
	HIDDENSOURCEMSG      Key = "HiddenSourceMsg"
	HIDDENREVEALMSG      Key = "HiddenRevealMsg"
	HIDDENMSGNOTFOUND    Key = "HiddenMsgNotFound"
	HIDDENSHAREBTN       Key = "HiddenShareBtn"

	SATS4ADSHELP       Key = "sats4adsHelp"
	SATS4ADSTOGGLE     Key = "Sats4adsToggle"
	SATS4ADSBROADCAST  Key = "Sats4adsBroadcast"
	SATS4ADSSTART      Key = "Sats4adsStart"
	SATS4ADSPRICETABLE Key = "Sats4adsPriceTable"
	SATS4ADSADFOOTER   Key = "Sats4adsAdFooter"
	SATS4ADSVIEWED     Key = "Viewed"

	TOGGLEHELP Key = "toggleHelp"

	HELPHELP Key = "helpHelp"

	STOPHELP Key = "stopHelp"

	PAYPROMPT         Key = "PayPrompt"
	FAILEDDECODE      Key = "FailedDecode"
	BALANCEMSG        Key = "BalanceMsg"
	TAGGEDBALANCEMSG  Key = "TaggedBalanceMsg"
	FAILEDUSER        Key = "FailedUser"
	LOTTERYMSG        Key = "LotteryMsg"
	INVALIDPARTNUMBER Key = "InvalidPartNumber"
	USERSENTTOUSER    Key = "UserSentToUser"
	USERSENTYOUSATS   Key = "UserSentYouSats"
	RECEIVEDSATSANON  Key = "ReceivedSatsAnon"
	FAILEDSEND        Key = "FailedSend"
	QRCODEFAIL        Key = "QRCodeFail"
	SAVERECEIVERFAIL  Key = "SaveReceiverFail"
	MISSINGRECEIVER   Key = "MissingReceiver"
	GIVERCANTJOIN     Key = "GiverCantJoin"
	CANTJOINTWICE     Key = "CantJoinTwice"
	CANTREVEALOWN     Key = "CantRevealOwn"
	CANTCANCEL        Key = "CantCancel"
	FAILEDINVOICE     Key = "FailedInvoice"
	STOPNOTIFY        Key = "StopNotify"
	START             Key = "Start"
	WRONGCOMMAND      Key = "WrongCommand"
	RETRACTQUESTION   Key = "RetractQuestion"
	RECHECKPENDING    Key = "RecheckPending"

	TXNOTFOUND Key = "TxNotFound"
	TXINFO     Key = "TxInfo"
	TXLIST     Key = "TxList"
	TXLOG      Key = "TxLog"
)

type T

type T map[string]interface{}

Jump to

Keyboard shortcuts

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