From 1df9798dbca1f3d085f368469f659b3ee887e313 Mon Sep 17 00:00:00 2001 From: Ali Zareshahi Date: Mon, 16 Feb 2026 01:08:45 +0330 Subject: [PATCH 1/4] add persian lang --- .gitignore | 2 + app/(chat)/layout.tsx | 35 -- app/[locale]/(auth)/layout.tsx | 41 ++ app/{ => [locale]}/(auth)/login/page.tsx | 29 +- app/{ => [locale]}/(auth)/register/page.tsx | 33 +- app/{ => [locale]}/(chat)/chat/[id]/page.tsx | 6 +- app/[locale]/(chat)/layout.tsx | 71 +++ app/{ => [locale]}/(chat)/page.tsx | 6 +- app/globals.css | 22 + app/layout.tsx | 37 +- app/page.tsx | 6 + components/app-sidebar.tsx | 28 +- components/auth-form.tsx | 12 +- components/chat-header.tsx | 6 +- components/greeting.tsx | 7 +- components/message-actions.tsx | 28 +- components/multimodal-input.tsx | 18 +- components/sidebar-history-item.tsx | 12 +- components/sidebar-history.tsx | 37 +- components/suggested-actions.tsx | 11 +- components/ui/sidebar.tsx | 7 +- components/visibility-selector.tsx | 41 +- docker-compose.yml | 19 + i18n/locales/en/translation.json | 268 ++++++++++++ i18n/locales/fa/translation.json | 268 ++++++++++++ i18n/request.ts | 17 + i18n/routing.ts | 6 + lib/fonts.ts | 18 + next-env.d.ts | 2 +- next.config.ts | 4 +- package.json | 1 + pnpm-lock.yaml | 430 +++++++++++++++++++ proxy.ts | 55 ++- public/fonts/Vazirmatn-Bold.ttf | Bin 0 -> 123036 bytes public/fonts/Vazirmatn-Regular.ttf | Bin 0 -> 122752 bytes 35 files changed, 1402 insertions(+), 181 deletions(-) delete mode 100644 app/(chat)/layout.tsx create mode 100644 app/[locale]/(auth)/layout.tsx rename app/{ => [locale]}/(auth)/login/page.tsx (72%) rename app/{ => [locale]}/(auth)/register/page.tsx (68%) rename app/{ => [locale]}/(chat)/chat/[id]/page.tsx (89%) create mode 100644 app/[locale]/(chat)/layout.tsx rename app/{ => [locale]}/(chat)/page.tsx (85%) create mode 100644 app/page.tsx create mode 100644 docker-compose.yml create mode 100644 i18n/locales/en/translation.json create mode 100644 i18n/locales/fa/translation.json create mode 100644 i18n/request.ts create mode 100644 i18n/routing.ts create mode 100644 lib/fonts.ts create mode 100644 public/fonts/Vazirmatn-Bold.ttf create mode 100644 public/fonts/Vazirmatn-Regular.ttf diff --git a/.gitignore b/.gitignore index 864e97de91..712fc02d70 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,5 @@ yarn-error.log* /playwright-report/ /blob-report/ /playwright/* +db-data +redis-data diff --git a/app/(chat)/layout.tsx b/app/(chat)/layout.tsx deleted file mode 100644 index f6d4f5feea..0000000000 --- a/app/(chat)/layout.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import { cookies } from "next/headers"; -import Script from "next/script"; -import { Suspense } from "react"; -import { AppSidebar } from "@/components/app-sidebar"; -import { DataStreamProvider } from "@/components/data-stream-provider"; -import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar"; -import { auth } from "../(auth)/auth"; - -export default function Layout({ children }: { children: React.ReactNode }) { - return ( - <> -