2023-04-21 16:12:07 +00:00
import { SubmitKey } from "../store/config" ;
2023-05-19 16:39:52 +00:00
import { RequiredLocaleType } from "./index" ;
2023-03-20 16:17:45 +00:00
2023-05-19 16:39:52 +00:00
const en : RequiredLocaleType = {
2023-04-26 18:14:38 +00:00
WIP : "Coming Soon..." ,
2023-03-26 06:53:40 +00:00
Error : {
Unauthorized :
"Unauthorized access, please enter access code in settings page." ,
} ,
2023-03-21 16:20:32 +00:00
ChatItem : {
ChatItemCount : ( count : number ) = > ` ${ count } messages ` ,
} ,
Chat : {
SubTitle : ( count : number ) = > ` ${ count } messages with ChatGPT ` ,
Actions : {
ChatList : "Go To Chat List" ,
CompressedHistory : "Compressed History Memory Prompt" ,
Export : "Export All Messages as Markdown" ,
2023-03-23 17:42:38 +00:00
Copy : "Copy" ,
Stop : "Stop" ,
2023-03-26 10:59:09 +00:00
Retry : "Retry" ,
2023-04-16 10:55:29 +00:00
Delete : "Delete" ,
2023-03-20 16:17:45 +00:00
} ,
2023-03-29 16:02:50 +00:00
Rename : "Rename Chat" ,
2023-03-21 16:20:32 +00:00
Typing : "Typing…" ,
2023-03-29 09:53:52 +00:00
Input : ( submitKey : string ) = > {
2023-04-07 18:53:35 +00:00
var inputHints = ` ${ submitKey } to send ` ;
2023-03-29 09:53:52 +00:00
if ( submitKey === String ( SubmitKey . Enter ) ) {
2023-04-07 18:53:35 +00:00
inputHints += ", Shift + Enter to wrap" ;
2023-03-29 09:53:52 +00:00
}
2023-04-07 18:53:35 +00:00
return inputHints + ", / to search prompts" ;
2023-03-29 09:53:52 +00:00
} ,
2023-03-21 16:20:32 +00:00
Send : "Send" ,
2023-04-26 17:16:21 +00:00
Config : {
Reset : "Reset to Default" ,
SaveAs : "Save as Mask" ,
} ,
2023-03-21 16:20:32 +00:00
} ,
Export : {
2023-05-21 16:59:36 +00:00
Title : "Export Messages" ,
2023-03-21 16:20:32 +00:00
Copy : "Copy All" ,
Download : "Download" ,
2023-04-03 21:37:35 +00:00
MessageFromYou : "Message From You" ,
MessageFromChatGPT : "Message From ChatGPT" ,
2023-05-21 16:59:36 +00:00
Share : "Share to ShareGPT" ,
Format : {
Title : "Export Format" ,
SubTitle : "Markdown or PNG Image" ,
} ,
IncludeContext : {
Title : "Including Context" ,
SubTitle : "Export context prompts in mask or not" ,
} ,
Steps : {
Select : "Select" ,
Preview : "Preview" ,
} ,
} ,
Select : {
Search : "Search" ,
All : "Select All" ,
Latest : "Select Latest" ,
Clear : "Clear" ,
2023-03-21 16:20:32 +00:00
} ,
Memory : {
Title : "Memory Prompt" ,
EmptyContent : "Nothing yet." ,
2023-04-05 18:37:12 +00:00
Send : "Send Memory" ,
Copy : "Copy Memory" ,
Reset : "Reset Session" ,
ResetConfirm :
"Resetting will clear the current conversation history and historical memory. Are you sure you want to reset?" ,
2023-03-21 16:20:32 +00:00
} ,
Home : {
NewChat : "New Chat" ,
DeleteChat : "Confirm to delete the selected conversation?" ,
2023-04-06 16:14:27 +00:00
DeleteToast : "Chat Deleted" ,
Revert : "Revert" ,
2023-03-21 16:20:32 +00:00
} ,
Settings : {
Title : "Settings" ,
SubTitle : "All Settings" ,
Actions : {
ClearAll : "Clear All Data" ,
ResetAll : "Reset All Settings" ,
Close : "Close" ,
2023-04-27 16:34:37 +00:00
ConfirmResetAll : "Are you sure you want to reset all configurations?" ,
ConfirmClearAll : "Are you sure you want to reset all data?" ,
2023-03-20 16:17:45 +00:00
} ,
2023-03-21 16:20:32 +00:00
Lang : {
2023-04-02 18:02:03 +00:00
Name : "Language" , // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
2023-04-26 17:16:21 +00:00
All : "All Languages" ,
2023-03-20 16:17:45 +00:00
} ,
2023-03-21 16:20:32 +00:00
Avatar : "Avatar" ,
2023-03-28 06:37:44 +00:00
FontSize : {
Title : "Font Size" ,
SubTitle : "Adjust font size of chat content" ,
} ,
2023-03-23 16:01:00 +00:00
Update : {
Version : ( x : string ) = > ` Version: ${ x } ` ,
IsLatest : "Latest version" ,
CheckUpdate : "Check Update" ,
IsChecking : "Checking update..." ,
FoundUpdate : ( x : string ) = > ` Found new version: ${ x } ` ,
GoToUpdate : "Update" ,
} ,
2023-03-21 16:20:32 +00:00
SendKey : "Send Key" ,
Theme : "Theme" ,
TightBorder : "Tight Border" ,
2023-04-27 16:34:37 +00:00
SendPreviewBubble : {
Title : "Send Preview Bubble" ,
SubTitle : "Preview markdown in bubble" ,
} ,
Mask : {
Title : "Mask Splash Screen" ,
SubTitle : "Show a mask splash screen before starting new chat" ,
} ,
2023-03-28 17:39:14 +00:00
Prompt : {
Disable : {
Title : "Disable auto-completion" ,
2023-03-29 15:31:55 +00:00
SubTitle : "Input / to trigger auto-completion" ,
2023-03-28 17:39:14 +00:00
} ,
List : "Prompt List" ,
ListCount : ( builtin : number , custom : number ) = >
` ${ builtin } built-in, ${ custom } user-defined ` ,
Edit : "Edit" ,
2023-04-17 17:34:12 +00:00
Modal : {
Title : "Prompt List" ,
Add : "Add One" ,
Search : "Search Prompts" ,
} ,
2023-05-01 18:26:43 +00:00
EditModal : {
Title : "Edit Prompt" ,
} ,
2023-03-28 17:39:14 +00:00
} ,
2023-03-21 16:20:32 +00:00
HistoryCount : {
Title : "Attached Messages Count" ,
SubTitle : "Number of sent messages attached per request" ,
2023-03-20 16:17:45 +00:00
} ,
2023-03-21 16:20:32 +00:00
CompressThreshold : {
Title : "History Compression Threshold" ,
SubTitle :
"Will compress if uncompressed messages length exceeds the value" ,
2023-03-20 16:17:45 +00:00
} ,
2023-03-26 12:35:15 +00:00
Token : {
Title : "API Key" ,
SubTitle : "Use your key to ignore access code limit" ,
Placeholder : "OpenAI API Key" ,
} ,
2023-03-29 17:45:26 +00:00
Usage : {
Title : "Account Balance" ,
2023-04-05 19:56:54 +00:00
SubTitle ( used : any , total : any ) {
return ` Used this month $ ${ used } , subscription $ ${ total } ` ;
2023-03-29 17:45:26 +00:00
} ,
IsChecking : "Checking..." ,
2023-04-17 17:34:12 +00:00
Check : "Check" ,
2023-04-03 12:18:04 +00:00
NoAccess : "Enter API Key to check balance" ,
2023-03-29 17:45:26 +00:00
} ,
2023-03-26 06:53:40 +00:00
AccessCode : {
Title : "Access Code" ,
SubTitle : "Access control enabled" ,
Placeholder : "Need Access Code" ,
} ,
2023-03-21 16:20:32 +00:00
Model : "Model" ,
Temperature : {
Title : "Temperature" ,
SubTitle : "A larger value makes the more random output" ,
2023-03-20 16:17:45 +00:00
} ,
2023-03-21 16:20:32 +00:00
MaxTokens : {
Title : "Max Tokens" ,
SubTitle : "Maximum length of input tokens and generated tokens" ,
2023-03-20 16:17:45 +00:00
} ,
2023-05-16 07:40:43 +00:00
PresencePenalty : {
2023-03-21 16:20:32 +00:00
Title : "Presence Penalty" ,
SubTitle :
"A larger value increases the likelihood to talk about new topics" ,
} ,
} ,
Store : {
DefaultTopic : "New Conversation" ,
BotHello : "Hello! How can I assist you today?" ,
Error : "Something went wrong, please try again later." ,
Prompt : {
History : ( content : string ) = >
2023-05-20 17:28:09 +00:00
"This is a summary of the chat history as a recap: " + content ,
2023-03-21 16:20:32 +00:00
Topic :
2023-03-29 16:02:50 +00:00
"Please generate a four to five word title summarizing our conversation without any lead-in, punctuation, quotation marks, periods, symbols, or additional text. Remove enclosing quotation marks." ,
2023-03-21 16:20:32 +00:00
Summarize :
2023-05-20 17:28:09 +00:00
"Summarize the discussion briefly in 200 words or less to use as a prompt for future context." ,
2023-03-21 16:20:32 +00:00
} ,
} ,
Copy : {
Success : "Copied to clipboard" ,
Failed : "Copy failed, please grant permission to access clipboard" ,
} ,
2023-04-02 18:02:03 +00:00
Context : {
Toast : ( x : any ) = > ` With ${ x } contextual prompts ` ,
Edit : "Contextual and Memory Prompts" ,
2023-04-26 17:16:21 +00:00
Add : "Add a Prompt" ,
2023-05-20 17:44:59 +00:00
Clear : "Context Cleared" ,
Revert : "Revert" ,
2023-04-26 17:16:21 +00:00
} ,
2023-04-27 16:34:37 +00:00
Plugin : {
Name : "Plugin" ,
} ,
2023-04-26 17:16:21 +00:00
Mask : {
2023-04-27 16:34:37 +00:00
Name : "Mask" ,
2023-04-26 17:16:21 +00:00
Page : {
Title : "Prompt Template" ,
SubTitle : ( count : number ) = > ` ${ count } prompt templates ` ,
Search : "Search Templates" ,
Create : "Create" ,
} ,
Item : {
Info : ( count : number ) = > ` ${ count } prompts ` ,
Chat : "Chat" ,
View : "View" ,
Edit : "Edit" ,
Delete : "Delete" ,
DeleteConfirm : "Confirm to delete?" ,
} ,
EditModal : {
Title : ( readonly : boolean ) = >
` Edit Prompt Template ${ readonly ? "(readonly)" : "" } ` ,
Download : "Download" ,
Clone : "Clone" ,
} ,
Config : {
Avatar : "Bot Avatar" ,
Name : "Bot Name" ,
2023-05-19 16:39:52 +00:00
Sync : {
Title : "Use Global Config" ,
SubTitle : "Use global config in this chat" ,
Confirm : "Confirm to override custom config with global config?" ,
} ,
2023-05-20 12:08:17 +00:00
HideContext : {
Title : "Hide Context Prompts" ,
SubTitle : "Do not show in-context prompts in chat" ,
} ,
2023-04-26 17:16:21 +00:00
} ,
} ,
NewChat : {
Return : "Return" ,
2023-05-20 15:49:10 +00:00
Skip : "Just Start" ,
2023-04-26 17:16:21 +00:00
Title : "Pick a Mask" ,
SubTitle : "Chat with the Soul behind the Mask" ,
More : "Find More" ,
2023-05-20 15:49:10 +00:00
NotShow : "Never Show Again" ,
2023-04-27 16:34:37 +00:00
ConfirmNoShow : "Confirm to disable? You can enable it in settings later." ,
2023-04-02 18:02:03 +00:00
} ,
2023-05-01 18:26:43 +00:00
UI : {
Confirm : "Confirm" ,
Cancel : "Cancel" ,
Close : "Close" ,
Create : "Create" ,
Edit : "Edit" ,
} ,
2023-03-21 16:20:32 +00:00
} ;
2023-03-20 16:17:45 +00:00
2023-03-21 16:20:32 +00:00
export default en ;