Documentation ¶
Index ¶
Constants ¶
View Source
const (
DEFAULT_LOCALE = "en_US"
)
Variables ¶
View Source
var SUPPORTED_LOCALES = []string{
"de_DE",
"en_US",
"es_ES",
"fr_FR",
"it_IT",
"ja_JA",
"ko_KR",
"pt_BR",
"zh_Hans",
"zh_Hant",
}
View Source
var T goi18n.TranslateFunc
Functions ¶
func GetResourcePath ¶
func GetResourcePath() string
func InitWithLocale ¶
func InitWithLocale(locale string)
func LangOfLocale ¶
func SetResourcePath ¶
func SetResourcePath(path string)
Types ¶
type JibberJabberDetector ¶
type JibberJabberDetector struct{}
func (*JibberJabberDetector) DetectLanguage ¶
func (d *JibberJabberDetector) DetectLanguage() string
func (*JibberJabberDetector) DetectLocale ¶
func (d *JibberJabberDetector) DetectLocale() string
Click to show internal directories.
Click to hide internal directories.