Documentation ¶
Index ¶
- Constants
- Variables
- func GetLanguage() string
- func Sprintf(key message.Reference, a ...interface{}) string
- func SprintfColon(key message.Reference, a ...interface{}) string
- func SprintfEllipsis(key message.Reference, a ...interface{}) string
- func SprintfLSpace(key message.Reference, a ...interface{}) string
- func SprintfRSpace(key message.Reference, a ...interface{}) string
Constants ¶
View Source
const LangFile = "lang.config"
Variables ¶
View Source
var (
IDToName = map[string]string{
"zh-CN": "简体中文",
"zh-TW": "繁體中文",
"en-US": "English",
"ja-JP": "日本語",
"ko-KR": "한국어",
"es-ES": "Español",
}
)
Functions ¶
func GetLanguage ¶ added in v1.12.0
func GetLanguage() string
GetLanguage returns the current display language code.
func SprintfColon ¶
SprintfColon adds a colon at the tail of a string.
func SprintfEllipsis ¶
SprintfEllipsis adds an ellipsis at the tail of a string.
func SprintfLSpace ¶
SprintfLSpace adds a space at the start of a string.
func SprintfRSpace ¶ added in v1.10.0
SprintfRSpace adds a space at the end of a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.