Documentation ¶
Overview ¶
Package i18n is for app Internationalization and Localization.
Index ¶
- func GetDescriptionByIndex(index int) string
- func GetDescriptionByLang(lang string) string
- func GetLangByIndex(index int) string
- func IndexLang(lang string) int
- func IsExist(lang string) bool
- func ListLangDescs() []string
- func ListLangs() []string
- func ReloadLangs(langs ...string) error
- func SetMessage(lang, filePath string, appendFiles ...string) error
- func SetMessageWithDesc(lang, langDesc, filePath string, appendFiles ...string) error
- func Tr(lang, format string, args ...interface{}) string
- type Locale
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDescriptionByIndex ¶
func GetDescriptionByLang ¶
func ListLangDescs ¶
func ListLangDescs() []string
func SetMessage ¶
SetMessage sets the message file for localization.
func SetMessageWithDesc ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.