Versions in this module Expand all Collapse all v1 v1.1.0 Apr 25, 2020 v1.0.0 Jan 31, 2020 Changes in this version + type Bundle struct + func New() *Bundle + func (b *Bundle) AddTranslation(lang *language.Language, translations ...translation.Translation) + func (b *Bundle) LanguageTags() []string + func (b *Bundle) LanguageTranslationIDs(languageTag string) []string + func (b *Bundle) LoadTranslationFile(filename string) error + func (b *Bundle) MustLoadTranslationFile(filename string) + func (b *Bundle) MustTfunc(pref string, prefs ...string) TranslateFunc + func (b *Bundle) MustTfuncAndLanguage(pref string, prefs ...string) (TranslateFunc, *language.Language) + func (b *Bundle) ParseTranslationFileBytes(filename string, buf []byte) error + func (b *Bundle) Tfunc(pref string, prefs ...string) (TranslateFunc, error) + func (b *Bundle) TfuncAndLanguage(pref string, prefs ...string) (TranslateFunc, *language.Language, error) + func (b *Bundle) Translations() map[string]map[string]translation.Translation + type TranslateFunc func(translationID string, args ...interface{}) string