Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 375 Bytes
package client
var (
// LanguageOptions = []string{"en", "ar", "zh", "sv", "fa"}
LanguageOptions = []string{"en", "ar", "fa"}
validLanguages map[string]bool
)
func ValidLanguage(lang string) bool {
_, ok := validLanguages[lang]
return ok
}
func init() {
validLanguages = make(map[string]bool, 0)
for _, v := range LanguageOptions {
validLanguages[v] = true
}
}
You can’t perform that action at this time.