Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LanguagePack ¶
type LanguagePack interface { Translate(original string, destLanguage enum.Language) (ok bool, result string) Pack() MultipleLanguagePack }
LanguagePack 语言包接口
func NewLanguagePack ¶
func NewLanguagePack(translations map[enum.Language]map[string]string) LanguagePack
Click to show internal directories.
Click to hide internal directories.