Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchLanguage ¶
MatchLanguage 匹配最可能的语言
Types ¶
type Translator ¶
type Translator struct { sync.RWMutex //Dictionary map[language.Tag]map[int32]string Dictionary map[int32]map[language.Tag]string }
Translator 翻译器
func (*Translator) Register ¶
func (t *Translator) Register(lan language.Tag, code int32, msg string)
Register 注册翻译
Click to show internal directories.
Click to hide internal directories.