ussd/internal/utils/isocode.go

16 lines
169 B
Go
Raw Normal View History

2024-09-24 08:00:31 +02:00
package utils
var isoCodes = map[string]bool{
"eng": true, // English
"swa": true, // Swahili
}
func IsValidISO639(code string) bool {
return isoCodes[code]
}