type Lang = "ar" | "en";

export type LocationKey =
  | "sa-riyadh"
  | "sa-jeddah"
  | "sa-dammam"
  | "ae-dubai"
  | "ae-abu-dhabi"
  | "qa-doha"
  | "kw-kuwait-city"
  | "bh-manama"
  | "om-muscat";

export const LOCATIONS = {
  "sa-riyadh": {
    slug: { ar: "riyadh", en: "riyadh" },
    name: { ar: "الرياض", en: "Riyadh" },
    countryCode: "SA",
  },
  "sa-jeddah": {
    slug: { ar: "jeddah", en: "jeddah" },
    name: { ar: "جدة", en: "Jeddah" },
    countryCode: "SA",
  },
  "sa-dammam": {
    slug: { ar: "dammam", en: "dammam" },
    name: { ar: "الدمام", en: "Dammam" },
    countryCode: "SA",
  },
  "ae-dubai": {
    slug: { ar: "dubai", en: "dubai" },
    name: { ar: "دبي", en: "Dubai" },
    countryCode: "AE",
  },
  "ae-abu-dhabi": {
    slug: { ar: "abu-dhabi", en: "abu-dhabi" },
    name: { ar: "أبو ظبي", en: "Abu Dhabi" },
    countryCode: "AE",
  },
  "qa-doha": {
    slug: { ar: "doha", en: "doha" },
    name: { ar: "الدوحة", en: "Doha" },
    countryCode: "QA",
  },
  "kw-kuwait-city": {
    slug: { ar: "kuwait-city", en: "kuwait-city" },
    name: { ar: "مدينة الكويت", en: "Kuwait City" },
    countryCode: "KW",
  },
  "bh-manama": {
    slug: { ar: "manama", en: "manama" },
    name: { ar: "المنامة", en: "Manama" },
    countryCode: "BH",
  },
  "om-muscat": {
    slug: { ar: "muscat", en: "muscat" },
    name: { ar: "مسقط", en: "Muscat" },
    countryCode: "OM",
  },
} as const satisfies Record<
  LocationKey,
  {
    slug: Record<Lang, string>;
    name: Record<Lang, string>;
    countryCode: string;
  }
>;

export const LOCATION_KEYS = Object.keys(LOCATIONS) as LocationKey[];
