localization

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PushTitleDepositReceived    = "push.title.depositReceived"
	PushSubtitleDepositReceived = "push.subtitle.depositReceived"

	PushTitleKinReturned    = "push.title.kinReturned"
	PushSubtitleKinReturned = "push.subtitle.kinReturned"

	ChatTitleCashTransactions = "title.chat.cashTransactions"
	ChatTitleCodeTeam         = "title.chat.codeTeam"
	ChatTitlePayments         = "title.chat.payments"

	ChatMessageReferralBonus = "subtitle.chat.referralBonus"
	ChatMessageWelcomeBonus  = "subtitle.chat.welcomeBonus"
)

Variables

This section is empty.

Functions

func GetAndroidLocalizationKey

func GetAndroidLocalizationKey(key string) string

GetAndroidLocalizationKey gets a localization string in the Android format

func GetIosLocalizationKey

func GetIosLocalizationKey(key string) string

GetIosLocalizationKey gets a localization string in the iOS format

func GetLocalizationKeyForUserAgent

func GetLocalizationKeyForUserAgent(ctx context.Context, key string) string

GetLocalizationKeyForUserAgent gets a localization key in the format for the device as provided in the user agent header. If an unknown device type, or the user- gent header isn't available, then the original key is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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