Include lang iso
This commit is contained in:
parent
38cd8d6920
commit
a13fea8084
11
lang/isocode.go
Normal file
11
lang/isocode.go
Normal 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]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user