fix(i18n): keep locale on website->dashboard links; dashboard defaults to fa

Marketing-site login/register/dashboard links were locale-less (app.meezi.ir/login), so the dashboard auto-detected locale from the browser Accept-Language (en-US) and redirected Persian users to /en. Links now carry the current locale, and the dashboard sets localeDetection:false so any locale-less entry defaults to fa (Iran-first) instead of guessing from the browser.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-01 23:23:09 +03:30
parent 4c7783884c
commit 35494d8b32
5 changed files with 11 additions and 6 deletions
@@ -101,7 +101,7 @@ export function LaunchCountdownSection() {
</div>
<a
href="https://app.meezi.ir/register"
href={`https://app.meezi.ir/${locale}/register`}
className={cn(
"inline-flex items-center justify-center rounded-xl bg-brand-700 px-6 py-3 text-sm font-semibold text-white",
"transition hover:bg-brand-800 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-700 focus-visible:ring-offset-2"