Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Refactor [UI/UX] [Front End] [Chats] Update Locales (#277)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
H0llyW00dzZ authored Feb 13, 2024
1 parent 302a036 commit 430bc06
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
Expand Down
6 changes: 6 additions & 0 deletions app/locales/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,12 @@ const cn = {
UnHide: "在聊天中显示默认对话框",
Hide: "在聊天中隐藏默认对话框",
},
ShowFullChatHistory: {
Title: "显示所有聊天记录",
SubTitle: "显示完整的聊天记录",
UnHide: "显示整个聊天记录",
Hide: "隐藏所有聊天记录(仅显示最后15条消息)",
},
Share: {
Title: "分享此面具",
SubTitle: "生成此面具的直达链接",
Expand Down
6 changes: 6 additions & 0 deletions app/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions app/locales/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 430bc06

Please sign in to comment.