From 88e1ccf4a967ac77bc30ee5fd43c2c160a92fd14 Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 17 Apr 2025 20:09:54 +0800 Subject: [PATCH] . --- app/[locale]/setup/page.tsx | 17 ++++++++++------- public/locales/en/translation.json | 10 ++++++++-- public/locales/ja/translation.json | 11 +++++++++-- public/locales/zh/translation.json | 15 ++++++++++----- 4 files changed, 37 insertions(+), 16 deletions(-) diff --git a/app/[locale]/setup/page.tsx b/app/[locale]/setup/page.tsx index 700e8e9..e8811dd 100644 --- a/app/[locale]/setup/page.tsx +++ b/app/[locale]/setup/page.tsx @@ -1,4 +1,4 @@ -"use client" +'use client' import { ChatbotUIContext } from "@/context/context" import { getProfileByUserId, updateProfile } from "@/db/profile" @@ -21,6 +21,7 @@ import { SETUP_STEP_COUNT, StepContainer } from "../../../components/setup/step-container" +import { useTranslation } from 'react-i18next' export default function SetupPage() { const { @@ -35,6 +36,8 @@ export default function SetupPage() { const router = useRouter() + const { t } = useTranslation() + const [loading, setLoading] = useState(true) const [currentStep, setCurrentStep] = useState(1) @@ -161,9 +164,9 @@ export default function SetupPage() { case 1: return (