remove api check

This commit is contained in:
tresabhi committed 2026-10-07 16:56:40 -05:00
1 parent aaf0e52be4
commit 92c8b90bb3
1 file changed
-2
@@ -3,7 +3,6 @@
import { getBestLocale } from "../core/i18n/getBestLocale";
const pathname = window.location.pathname;
const isAPI = pathname.startsWith("/api");
const hasPreference = localStorage.getItem("preferred-locale") !== null;
const bestLocale = getBestLocale();
const currentLocale =
@@ -14,7 +13,6 @@
)?.locale ?? locales.default;
if (
!isAPI &&
bestLocale !== currentLocale &&
(hasPreference || currentLocale === locales.default)
) {