Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Report ¶
func Report() map[string]*TranslationReport
Report generates a TranslationReport for each registered language.
Types ¶
type Registrar ¶
type Registrar struct {
// contains filtered or unexported fields
}
Registrar is used for registering translations for a specific language and caller context.
func NewRegistrar ¶
NewRegistrar constructs a Registrar.
func (*Registrar) Register ¶
func (r *Registrar) Register(translationID string, t *Translation)
Register registers a translation.
type Translation ¶
Trasnlation is a versioned localized string. Notes added to the english translation will be presented to human translators.
type TranslationReport ¶
type TranslationReport struct { Missing map[string]map[string]*Translation // English translation Extras []string /* caller ID */ }
TranslationReport is a report of missing and extraneous translations.
Click to show internal directories.
Click to hide internal directories.