Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_LANGUAGE = "en"
View Source
const HZN_LANG = "HZN_LANG"
Variables ¶
This section is empty.
Functions ¶
func FindMatchingLanguage ¶
find the default matching language for locae laguage. The fallback is English
func GetMessagePrinterWithLocale ¶
Get the message printer with the given locale. The fallback is English if the given locale is not a valid locale string. If it is a valid locale string, but the language is not in the supported list, go text will find the best match for it.
func InitMessagePrinter ¶
create a message printer with locale defined in HZN_LANG or LANG. Fallback to English
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.