From 27c41a497d967b7dd0f3960a0a32d9210534bb33 Mon Sep 17 00:00:00 2001 From: poyrazavsever Date: Mon, 20 Jul 2026 10:25:40 +0300 Subject: [PATCH] refactor(projects): update project and task pages for i18n v2 --- app/(dashboard)/projects/[id]/page.tsx | 4 ++-- app/(dashboard)/projects/page.tsx | 4 ++-- app/(dashboard)/tasks/page.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/(dashboard)/projects/[id]/page.tsx b/app/(dashboard)/projects/[id]/page.tsx index 1b50e6f..3a823f8 100644 --- a/app/(dashboard)/projects/[id]/page.tsx +++ b/app/(dashboard)/projects/[id]/page.tsx @@ -10,12 +10,12 @@ import { import { getSqliteConnection } from "@/server/db/client"; import { DomainError } from "@/server/domain/errors"; import { ContentTranslationService, type ContentTranslationRow } from "@/server/i18n/content"; -import { resolveRequestLocale } from "@/server/i18n/resolver"; +import { resolveFreelancerLocale } from "@/server/i18n/resolver"; import { requireFreelancerBackend } from "@/server/web/freelancer"; export default async function ProjectDetailPage({ params }: { params: Promise<{ id: string }> }) { const { id } = await params; - const locale = await resolveRequestLocale(); + const locale = await resolveFreelancerLocale(); const { actor, service } = await requireFreelancerBackend(); const content = new ContentTranslationService(getSqliteConnection().db); const localization = content.getLocalizationContext(actor); diff --git a/app/(dashboard)/projects/page.tsx b/app/(dashboard)/projects/page.tsx index bfa760a..c60952e 100644 --- a/app/(dashboard)/projects/page.tsx +++ b/app/(dashboard)/projects/page.tsx @@ -1,11 +1,11 @@ import { ProjectsClient, type ProjectClientOption, type ProjectListItem } from "@/app/(dashboard)/projects/projects-client"; import { getSqliteConnection } from "@/server/db/client"; import { ContentTranslationService, type ContentTranslationRow } from "@/server/i18n/content"; -import { resolveRequestLocale } from "@/server/i18n/resolver"; +import { resolveFreelancerLocale } from "@/server/i18n/resolver"; import { requireFreelancerBackend } from "@/server/web/freelancer"; export default async function ProjectsPage() { - const locale = await resolveRequestLocale(); + const locale = await resolveFreelancerLocale(); const { actor, service } = await requireFreelancerBackend(); const content = new ContentTranslationService(getSqliteConnection().db); const localization = content.getLocalizationContext(actor); diff --git a/app/(dashboard)/tasks/page.tsx b/app/(dashboard)/tasks/page.tsx index e9584df..0c3fa59 100644 --- a/app/(dashboard)/tasks/page.tsx +++ b/app/(dashboard)/tasks/page.tsx @@ -1,11 +1,11 @@ import { TasksClient, type TaskListItem, type TaskRelationOption } from "@/app/(dashboard)/tasks/tasks-client"; import { getSqliteConnection } from "@/server/db/client"; import { ContentTranslationService, type ContentTranslationRow } from "@/server/i18n/content"; -import { resolveRequestLocale } from "@/server/i18n/resolver"; +import { resolveFreelancerLocale } from "@/server/i18n/resolver"; import { requireFreelancerBackend } from "@/server/web/freelancer"; export default async function TasksPage() { - const locale = await resolveRequestLocale(); + const locale = await resolveFreelancerLocale(); const { actor, service } = await requireFreelancerBackend(); const content = new ContentTranslationService(getSqliteConnection().db); const localization = content.getLocalizationContext(actor);