export type ClientLocale = "en" | "es";

export function getClientLocale(): ClientLocale {
  if (typeof navigator === "undefined") return "en";
  const language = navigator.language?.toLowerCase() ?? "en";
  return language.startsWith("es") ? "es" : "en";
}
