2023-04-21 16:12:07 +00:00
import { SubmitKey } from "../store/config" ;
2023-06-16 17:03:06 +00:00
import { LocaleType } from "./index" ;
2023-03-20 16:17:45 +00:00
2023-07-05 18:12:37 +00:00
// if you are adding a new translation, please use PartialLocaleType instead of LocaleType
2023-06-16 17:03:06 +00:00
const en : LocaleType = {
2023-04-26 18:14:38 +00:00
WIP : "Coming Soon..." ,
2023-03-26 06:53:40 +00:00
Error : {
Unauthorized :
2023-06-06 18:18:24 +00:00
"Unauthorized access, please enter access code in [auth](/#/auth) page." ,
} ,
Auth : {
Title : "Need Access Code" ,
Tips : "Please enter access code below" ,
Input : "access code" ,
Confirm : "Confirm" ,
Later : "Later" ,
2023-03-26 06:53:40 +00:00
} ,
2023-03-21 16:20:32 +00:00
ChatItem : {
ChatItemCount : ( count : number ) = > ` ${ count } messages ` ,
} ,
Chat : {
2023-06-25 17:27:36 +00:00
SubTitle : ( count : number ) = > ` ${ count } messages ` ,
2023-03-21 16:20:32 +00:00
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-06-25 16:21:58 +00:00
Pin : "Pin" ,
2023-07-09 08:15:58 +00:00
PinToastContent : "Pinned 1 messages to contextual prompts" ,
2023-06-25 16:21:58 +00:00
PinToastAction : "View" ,
2023-04-16 10:55:29 +00:00
Delete : "Delete" ,
2023-06-28 17:31:27 +00:00
Edit : "Edit" ,
2023-03-20 16:17:45 +00:00
} ,
2023-06-24 15:38:11 +00:00
Commands : {
new : "Start a new chat" ,
newm : "Start a new chat with mask" ,
next : "Next Chat" ,
prev : "Previous Chat" ,
clear : "Clear Context" ,
del : "Delete Chat" ,
} ,
2023-06-12 18:27:39 +00:00
InputActions : {
Stop : "Stop" ,
ToBottom : "To Latest" ,
Theme : {
auto : "Auto" ,
light : "Light Theme" ,
dark : "Dark Theme" ,
} ,
Prompt : "Prompts" ,
Masks : "Masks" ,
Clear : "Clear Context" ,
Settings : "Settings" ,
} ,
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-06-24 15:38:11 +00:00
return inputHints + ", / to search prompts, : to use commands" ;
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-07-09 08:39:46 +00:00
IsContext : "Contextual Prompt" ,
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" ,
} ,
2023-07-05 17:26:06 +00:00
Image : {
Toast : "Capturing Image..." ,
Modal : "Long press or right click to save image" ,
} ,
2023-05-21 16:59:36 +00:00
} ,
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" ,
2023-06-28 17:09:51 +00:00
Danger : {
Reset : {
Title : "Reset All Settings" ,
SubTitle : "Reset all setting items to default" ,
Action : "Reset" ,
Confirm : "Confirm to reset all settings to default?" ,
} ,
Clear : {
Title : "Clear All Data" ,
SubTitle : "Clear all messages and settings" ,
Action : "Clear" ,
Confirm : "Confirm to clear all messages and settings?" ,
} ,
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-07-10 12:14:10 +00:00
InjectSystemPrompts : {
Title : "Inject System Prompts" ,
2023-07-10 15:21:22 +00:00
SubTitle : "Inject a global system prompt for every request" ,
2023-07-10 12:14:10 +00:00
} ,
2023-06-23 16:07:46 +00:00
InputTemplate : {
Title : "Input Template" ,
SubTitle : "Newest message will be filled to this template" ,
} ,
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 : {
2023-07-04 17:07:26 +00:00
Splash : {
Title : "Mask Splash Screen" ,
SubTitle : "Show a mask splash screen before starting new chat" ,
} ,
Builtin : {
2023-07-05 14:39:25 +00:00
Title : "Hide Builtin Masks" ,
SubTitle : "Hide builtin masks in mask list" ,
2023-07-04 17:07:26 +00:00
} ,
2023-04-27 16:34:37 +00:00
} ,
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-06-13 16:37:42 +00:00
Endpoint : {
Title : "Endpoint" ,
SubTitle : "Custom endpoint must start with http(s)://" ,
} ,
2023-07-09 10:15:52 +00:00
CustomModel : {
Title : "Custom Models" ,
SubTitle : "Add extra model options, separate by comma" ,
} ,
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-07-03 16:39:54 +00:00
TopP : {
Title : "Top P" ,
SubTitle : "Do not alter this value together with temperature" ,
} ,
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" ,
} ,
2023-06-04 08:05:35 +00:00
FrequencyPenalty : {
Title : "Frequency Penalty" ,
SubTitle :
"A larger value decreasing the likelihood to repeat the same line" ,
} ,
2023-03-21 16:20:32 +00:00
} ,
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 ` ,
2023-07-03 16:39:54 +00:00
Edit : "Current Chat Settings" ,
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-07-05 15:19:54 +00:00
Share : {
Title : "Share This Mask" ,
SubTitle : "Generate a link to this mask" ,
Action : "Copy Link" ,
} ,
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-06-19 08:03:46 +00:00
Exporter : {
Model : "Model" ,
Messages : "Messages" ,
Topic : "Topic" ,
Time : "Time" ,
} ,
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 ;