Documentation ¶
Overview ¶
i18nUtil package has dependency on a third party package. please install it first before using this package.
go get -v golang.org/x/text
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMsg ¶
GetMsg to get the actual language text. tag parameter come from https://godoc.org/golang.org/x/text/language/display
English en AmericanEnglish en-US BritishEnglish en-GB Chinese zh SimplifiedChinese zh-Hans TraditionalChinese zh-Hant
if key parameter value inside the properties file has substituition placeholder like %s or %d or %f please pass the actual run-time value into the param ...interface{}
func LoadProperties ¶
LoadProperties to parse the properties file to be stored internally. tag parameter values please refer to GetMsg
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.