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
Click to show internal directories.
Click to hide internal directories.