views

package
v0.0.0-...-73c3907 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Localize   = "l10n_LocalizeEvent"
	DoLocalize = "l10n_DoLocalizeEvent"

	FromID      = "l10n_DoLocalize_FromID"
	FromVersion = "l10n_DoLocalize_FromVersion"
	FromLocale  = "l10n_DoLocalize_FromLocale"

	LocalizeFrom = "Localize From"
	LocalizeTo   = "Localize To"
)
View Source
const I18nLocalizeKey i18n.ModuleKey = "I18nLocalizeKey"
View Source
const MenuTopItemFunc = "l10nMenuTopItemFunc"
View Source
const WrapHandlerKey = "l10nWrapHandlerKey"

Variables

View Source
var Messages_en_US = &Messages{
	Localize:              "Localize",
	LocalizeFrom:          "From",
	LocalizeTo:            "To",
	SuccessfullyLocalized: "Successfully Localized",
	Location:              "Location",
	Colon:                 ":",
	International:         "International",
	China:                 "China",
	Japan:                 "Japan",
}
View Source
var Messages_ja_JP = &Messages{
	Localize:              "ローカライズ",
	LocalizeFrom:          "から",
	LocalizeTo:            "に",
	SuccessfullyLocalized: "ローカライズに成功しました",
	Location:              "場所",
	Colon:                 ":",
	International:         "インターナショナル",
	China:                 "中国",
	Japan:                 "日本",
}
View Source
var Messages_zh_CN = &Messages{
	Localize:              "本地化",
	LocalizeFrom:          "从",
	LocalizeTo:            "到",
	SuccessfullyLocalized: "本地化成功",
	Location:              "地区",
	Colon:                 ":",
	International:         "全球",
	China:                 "中国",
	Japan:                 "日本",
}

Functions

func Configure

func Configure(b *presets.Builder, db *gorm.DB, lb *l10n.Builder, ab *activity.ActivityBuilder, models ...*presets.ModelBuilder)

func MustGetTranslation

func MustGetTranslation(r *http.Request, key string) string

Types

type Messages

type Messages struct {
	Localize              string
	LocalizeFrom          string
	LocalizeTo            string
	SuccessfullyLocalized string
	Location              string
	Colon                 string
	International         string
	China                 string
	Japan                 string
}

type SelectLocale

type SelectLocale struct {
	Label string
	Code  string
}

Jump to

Keyboard shortcuts

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