locales

package
v0.0.0-...-d30cded Latest Latest
Warning

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

Go to latest
Published: Aug 28, 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 {
	ForgetPasswordMailTextItems *ForgetPasswordMailTextItems
}

LocaleTextItems represents all text items need to be translated

func GetLocaleTextItems

func GetLocaleTextItems(locale string) *LocaleTextItems

Jump to

Keyboard shortcuts

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