Documentation ¶
Overview ¶
Package localizer is used to localize for different languages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Localizer ¶
type Localizer struct {
// contains filtered or unexported fields
}
Localizer is message.Printer instance for the locale.
func Get ¶
Get gets the matched Localizer for the language. it will get the most matched language, see more: https://go.dev/blog/matchlang if the language is not supported by the server, then fall back to English. eg: language tags like zh-CN, zh-TW, zh-HK, cmn will use Chinese, other language tags like en-US, en-GB, nl or unknown language tag will use English.
Click to show internal directories.
Click to hide internal directories.