From 430bc06d81a3537e30b3079f86590cf72a945b17 Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Tue, 13 Feb 2024 10:27:19 +0700 Subject: [PATCH] Refactor [UI/UX] [Front End] [Chats] Update Locales (#277) * Feat [UI/UX] [Locales] ShowFullChatHistory - [+] feat(locales): add ShowFullChatHistory translations for cn, en, and id locales * Refactor [UI/UX] [Front End] [Chats] Update Locales - [+] refactor(chat.tsx): update Locale.Mask.Config.HideContext to Locale.Mask.Config.ShowFullChatHistory --- app/components/chat.tsx | 4 ++-- app/locales/cn.ts | 6 ++++++ app/locales/en.ts | 6 ++++++ app/locales/id.ts | 6 ++++++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index a8961348b82..4c37cb4c075 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -572,8 +572,8 @@ export function ChatActions(props: { onClick={props.toggleContextPrompts} text={ props.showContextPrompts - ? Locale.Mask.Config.HideContext.UnHide - : Locale.Mask.Config.HideContext.Hide + ? Locale.Mask.Config.ShowFullChatHistory.UnHide + : Locale.Mask.Config.ShowFullChatHistory.Hide } icon={ props.showContextPrompts ? ( diff --git a/app/locales/cn.ts b/app/locales/cn.ts index a0f057f338d..57e618c59ae 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -611,6 +611,12 @@ const cn = { UnHide: "在聊天中显示默认对话框", Hide: "在聊天中隐藏默认对话框", }, + ShowFullChatHistory: { + Title: "显示所有聊天记录", + SubTitle: "显示完整的聊天记录", + UnHide: "显示整个聊天记录", + Hide: "隐藏所有聊天记录(仅显示最后15条消息)", + }, Share: { Title: "分享此面具", SubTitle: "生成此面具的直达链接", diff --git a/app/locales/en.ts b/app/locales/en.ts index 1f067251e86..c69fac0093f 100644 --- a/app/locales/en.ts +++ b/app/locales/en.ts @@ -620,6 +620,12 @@ const en: LocaleType = { UnHide: "Show Context prompts in chat", Hide: "Hide Context prompts in chat", }, + ShowFullChatHistory: { + Title: "Display All Chat History", + SubTitle: "Show the complete chat history", + UnHide: "Reveal the entire chat history", + Hide: "Hide all chat history (Show only the last 15 messages)", + }, Share: { Title: "Share This Mask", SubTitle: "Generate a link to this mask", diff --git a/app/locales/id.ts b/app/locales/id.ts index ea311c5ba84..8b1875c5f23 100644 --- a/app/locales/id.ts +++ b/app/locales/id.ts @@ -529,6 +529,12 @@ const id: PartialLocaleType = { UnHide: "Tampilkan Prompt konteks dalam obrolan", Hide: "Sembunyikan Prompt konteks dalam obrolan", }, + ShowFullChatHistory: { + Title: "Tampilkan Seluruh Riwayat Obrolan", + SubTitle: "Tampilkan riwayat obrolan lengkap", + UnHide: "Perlihatkan seluruh riwayat obrolan", + Hide: "Sembunyikan seluruh riwayat obrolan (Hanya tampilkan 15 pesan terakhir)", + }, Share: { Title: "Bagikan Masks Ini", SubTitle: "Buat tautan untuk masks ini",