diff --git a/internal/utils/isocode.go b/internal/utils/isocode.go new file mode 100644 index 0000000..34365b0 --- /dev/null +++ b/internal/utils/isocode.go @@ -0,0 +1,15 @@ +package utils + + + + +var isoCodes = map[string]bool{ + "eng": true, // English + "swa": true, // Swahili + +} + +func IsValidISO639(code string) bool { + return isoCodes[code] +} +