Documentation
¶
Index ¶
Constants ¶
View Source
const ( MSGID = iota MSGIDPLURAL MSGSTR MSGCTXT COMPLATE )
Variables ¶
View Source
var ( // ErrKeyNotFound is returned when a translation key is not found in the dictionary ErrKeyNotFound = errors.New("translation key not found") // ErrJSONMarshal is returned when JSON marshaling fails ErrJSONMarshal = errors.New("failed to marshal JSON data") // ErrJSONUnmarshal is returned when JSON unmarshaling fails ErrJSONUnmarshal = errors.New("failed to unmarshal JSON data") // ErrInvalidArgument is returned when an invalid argument type is provided ErrInvalidArgument = errors.New("invalid argument type") )
Common error types
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { ProjectIdVersion string `key:"Project-Id-Version"` ReportMsgBugsTo string `key:"Report-Msgid-Bugs-To"` POTCreationDate *time.Time `key:"POT-Creation-Date"` PORevisionDate *time.Time `key:"PO-Revision-Date"` LastTranslator string `key:"Last-Translator"` Language string `key:"Language"` LanguageTeam string `key:"Language-Team"` ContentType string `key:"Content-Type"` ContentTransferEncoding string `key:"Content-Transfer-Encoding"` PluralForms string `key:"Plural-Forms"` // contains filtered or unexported fields }
type TranslateError ¶
TranslateError represents a specific translation error
func (*TranslateError) Error ¶
func (e *TranslateError) Error() string
Click to show internal directories.
Click to hide internal directories.