Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EmptyBundle = errors.New("empty bundle")
)
Functions ¶
func LoadBundle ¶
func LoadBundle(provider providers.FileProvider) (bundle *i18n.Bundle, err error)
Types ¶
type LocalizationContext ¶
func (*LocalizationContext) LangBy ¶
func (this *LocalizationContext) LangBy(id string) language.Tag
func (*LocalizationContext) Message ¶
func (this *LocalizationContext) Message(id string) string
func (*LocalizationContext) MessageOrDefault ¶
func (this *LocalizationContext) MessageOrDefault(fallbackId string, id string) string
Click to show internal directories.
Click to hide internal directories.