Documentation ¶
Index ¶
- Constants
- func Lang(ctx context.Context) language.Tag
- func P(tag language.Tag, id string, a ...interface{}) string
- func SetHTTPLangHeader(ctx context.Context, header http.Header) bool
- func WithLang(ctx context.Context, lang string) context.Context
- func WithLangTag(ctx context.Context, tag language.Tag) context.Context
- func WithRequestLang(ctx context.Context, req *http.Request) context.Context
- type ITable
- type Table
- type TableEntry
- type Tag
Constants ¶
View Source
const (
LangHeader = "X-Yunion-Lang"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Table ¶
type Table map[string]TableEntry
func (Table) Set ¶
func (tbl Table) Set(k string, te TableEntry)
type TableEntry ¶
func NewTableEntry ¶
func NewTableEntry() TableEntry
func (TableEntry) CN ¶
func (te TableEntry) CN(v string) TableEntry
func (TableEntry) EN ¶
func (te TableEntry) EN(v string) TableEntry
Click to show internal directories.
Click to hide internal directories.