Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
423 B
Raw Blame
"use client";

import { usePathname } from "next/navigation";
import { paths } from "@multica/core/paths";

export function useUserLocaleSyncEnabled(): boolean {
  const pathname = usePathname();
  // Account locale synchronization can reload the page. Finish the single-use
  // OAuth callback before allowing that reload on its destination.
  return !!pathname && pathname.replace(/\/+$/, "") !== paths.authCallback();
}