menu-profile-edit #82
15
internal/utils/isocode.go
Normal file
15
internal/utils/isocode.go
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package utils
|
||||||
|
|
||||||
|
|
||||||
lash marked this conversation as resolved
|
|||||||
|
|
||||||
|
|
||||||
|
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
please remove excess spaces