add supported language codes
This commit is contained in:
parent
250341a8bd
commit
33f8733106
11
internal/utils/isocodes.go
Normal file
11
internal/utils/isocodes.go
Normal file
@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
var isoCodes = map[string]bool{
|
||||
"eng": true, // English
|
||||
"swa": true, // Swahili
|
||||
|
||||
}
|
||||
|
||||
func IsValidISO639(code string) bool {
|
||||
return isoCodes[code]
|
||||
}
|
Loading…
Reference in New Issue
Block a user