Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LocaleFS embed.FS
View Source
var LocaleFSPathForLoad string
Functions ¶
func NewI18nBundle ¶
Types ¶
type Translation ¶
type Translation struct {
Package interface{}
}
func NewTranslation ¶
func NewTranslation(lang string) (*Translation, error)
func (*Translation) Translate ¶
func (t *Translation) Translate(key string) string
Click to show internal directories.
Click to hide internal directories.