Include lang iso

This commit is contained in:
lash
2025-01-12 08:49:24 +00:00
parent 38cd8d6920
commit a13fea8084

11
lang/isocode.go Normal file
View File

@@ -0,0 +1,11 @@
package utils
var isoCodes = map[string]bool{
"eng": true, // English
"swa": true, // Swahili
"default": true, // Default language: English
}
func IsValidISO639(code string) bool {
return isoCodes[code]
}