From 033ebe13587cc2519feba3d85975ea5d8e565316 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 22 Apr 2025 10:47:17 +0800 Subject: [PATCH] . --- components/setup/finish-step.tsx | 6 ++++-- public/locales/en/translation.json | 4 +++- public/locales/ja/translation.json | 4 +++- public/locales/zh/translation.json | 4 +++- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/components/setup/finish-step.tsx b/components/setup/finish-step.tsx index d0747d3..52160d3 100644 --- a/components/setup/finish-step.tsx +++ b/components/setup/finish-step.tsx @@ -1,18 +1,20 @@ import { FC } from "react" +import { useTranslation } from 'react-i18next' interface FinishStepProps { displayName: string } export const FinishStep: FC = ({ displayName }) => { + const { t } = useTranslation() return (
- Welcome to Chatbot UI + {t("setup.WelcomeToChatAIUI")} {displayName.length > 0 ? `, ${displayName.split(" ")[0]}` : null}!
-
Click next to start chatting.
+
{t("setup.ClickNextToStartChatting")}
) } diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index e4785bd..08359ab 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -30,7 +30,9 @@ "switchToOpenAI": "Switch To Standard OpenAI", "switchToAzureOpenAI": "Switch To Azure OpenAI", "back": "Back", - "next": "Next" + "next": "Next", + "WelcomeToChatAIUI": "Welcome to the Enterprise AI Chat Platform", + "ClickNextToStartChatting": "Click next to start chatting." }, "login": { diff --git a/public/locales/ja/translation.json b/public/locales/ja/translation.json index 635bbe0..8111820 100644 --- a/public/locales/ja/translation.json +++ b/public/locales/ja/translation.json @@ -29,7 +29,9 @@ "switchToOpenAI": "標準の OpenAI に切り替え", "switchToAzureOpenAI": "Azure OpenAI に切り替え", "back": "戻る", - "next": "次へ" + "next": "次へ", + "WelcomeToChatAIUI": "エンタープライズAIチャットプラットフォームへようこそ", + "ClickNextToStartChatting": "「次へ」をクリックしてチャットを始めましょう。" }, "login": { diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index a00e4a3..2bce351 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -29,7 +29,9 @@ "switchToOpenAI": "切换为标准 OpenAI", "switchToAzureOpenAI": "切换为 Azure OpenAI", "back": "返回", - "next": "下一步" + "next": "下一步", + "WelcomeToChatAIUI": "欢迎使用企业AI对话平台", + "ClickNextToStartChatting": "点击“下一步”开始聊天。" }, "login": {