Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context = string
Context is an alias type for string which is used by xspreak for extracting strings.
type Domain ¶
type Domain = string
Domain is an alias type for string which is used by xspreak for extracting strings.
type Error ¶
Error is returned when a Localizer or Locale translates an error into the target language.
type Localizable ¶
type Message ¶
type Message struct { Singular Singular Plural Plural Context Context Vars []interface{} Count int }
Message is a simple struct representing a message without a domain. Can be converted to a translated string by Localizers or a Locale.
func (*Message) GetContext ¶
func (*Message) GetPluralID ¶
type MsgID ¶
type MsgID = string
MsgID is an alias type for string which is used by xspreak for extracting strings MsgID and Singular are synonymous and both represent the ID to identify the message.
Click to show internal directories.
Click to hide internal directories.