Documentation
¶
Index ¶
- func AddResource(tag language.Tag, key string, value string)
- func AddTagMap(tag language.Tag, m map[string]string)
- func E(key string, tag language.Tag, arg ...interface{}) string
- func GetDefaultTag() language.Tag
- func GetExact(key string, tag language.Tag) string
- func Nearest(locale string, languages []string) string
- func ParseTag(name string) (tag language.Tag, err error)
- func ParseTagWithDefault(name string) (tag language.Tag)
- func Reset()
- func SetDefaultLang(lang string) error
- func SetDefaultTag(tag language.Tag)
- func T(key string, arg ...interface{}) string
- func TT(key string, tag language.Tag) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddResource ¶
AddResource add resource by tag and key
func GetDefaultTag ¶
func ParseTagWithDefault ¶ added in v0.2.0
func SetDefaultTag ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.