Documentation
¶
Overview ¶
Package i18n is for app Internationalization and Localization.
Index ¶
- func GetLangByIndex(index int) string
- func IndexLang(lang string) int
- func IsExist(lang string) bool
- func ListLangs() []string
- func ReloadLangs(langs ...string) error
- func SetMessage(lang, 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 SetMessage ¶
SetMessage sets the message file for localization.
Types ¶
Click to show internal directories.
Click to hide internal directories.