export const ADMIN_SUPPORTED_LANGUAGES = ["en", "ne", "zh"] as const;
export type AdminLanguage = (typeof ADMIN_SUPPORTED_LANGUAGES)[number];
export const ADMIN_DEFAULT_LANGUAGE: AdminLanguage = "zh";

export function normalizeAdminLanguage(lang: string | undefined): AdminLanguage {
  const base = lang?.split("-")[0]?.toLowerCase();
  if (base === "ne") return "ne";
  if (base === "zh") return "zh";
  return "en";
}
