diff --git a/lang/isocode.go b/lang/isocode.go new file mode 100644 index 0000000..692b7bb --- /dev/null +++ b/lang/isocode.go @@ -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] +}