Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct { Translations TranslationMap ContextTranslations map[string]TranslationMap }
Domain holds all translations of one domain
func (*Domain) AddTranslation ¶
func (d *Domain) AddTranslation(translation *Translation)
AddTranslation to the domain
type DomainMap ¶
DomainMap contains multiple domains as map with name as key
func (*DomainMap) AddTranslation ¶
func (m *DomainMap) AddTranslation(domain string, translation *Translation)
AddTranslation to domain map
type Translation ¶
Translation for a text to translate
func (*Translation) AddLocations ¶
func (t *Translation) AddLocations(locations []string)
AddLocations to translation
type TranslationMap ¶
type TranslationMap map[string]*Translation
TranslationMap contains a map of translations with the ID as key
func (TranslationMap) Dump ¶
func (m TranslationMap) Dump() string
Dump the translation map as string
Click to show internal directories.
Click to hide internal directories.