locales

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllLanguages = map[string]*LocaleInfo{
	"en": {
		Content: en,
	},
	"zh-Hans": {
		Content: zhHans,
	},
}

AllLanguages represents all the supported language

View Source
var DefaultLanguage = en

DefaultLanguage represents the default language

Functions

This section is empty.

Types

type ForgetPasswordMailTextItems

type ForgetPasswordMailTextItems struct {
	Title                     string
	SalutationFormat          string
	DescriptionAboveBtn       string
	ResetPassword             string
	DescriptionBelowBtnFormat string
}

ForgetPasswordMailTextItems represents text items need to be translated in forget password mail

type LocaleInfo

type LocaleInfo struct {
	Aliases []string
	Content *LocaleTextItems
}

LocaleInfo represents locale info

type LocaleTextItems

type LocaleTextItems struct {
	VerifyEmailTextItems        *VerifyEmailTextItems
	ForgetPasswordMailTextItems *ForgetPasswordMailTextItems
}

LocaleTextItems represents all text items need to be translated

func GetLocaleTextItems

func GetLocaleTextItems(locale string) *LocaleTextItems

type VerifyEmailTextItems

type VerifyEmailTextItems struct {
	Title                     string
	SalutationFormat          string
	DescriptionAboveBtn       string
	VerifyEmail               string
	DescriptionBelowBtnFormat string
}

VerifyEmailTextItems represents text items need to be translated in verify mail

Jump to

Keyboard shortcuts

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