diff --git a/internal/utils/isocodes.go b/internal/utils/isocodes.go new file mode 100644 index 0000000..3bdfbeb --- /dev/null +++ b/internal/utils/isocodes.go @@ -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] +}