2023-03-29 09:53:52 +00:00
import { SubmitKey } from "../store/app" ;
2023-03-21 16:20:32 +00:00
import type { LocaleType } from "./index" ;
2023-03-20 16:17:45 +00:00
const en : LocaleType = {
2023-03-23 17:42:38 +00:00
WIP : "WIP..." ,
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-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 ) = > {
var inputHints = ` Type something and press ${ submitKey } to send ` ;
if ( submitKey === String ( SubmitKey . Enter ) ) {
inputHints += ", press Shift + Enter to newline" ;
}
return inputHints ;
} ,
2023-03-21 16:20:32 +00:00
Send : "Send" ,
} ,
Export : {
Title : "All Messages" ,
Copy : "Copy All" ,
Download : "Download" ,
} ,
Memory : {
Title : "Memory Prompt" ,
EmptyContent : "Nothing yet." ,
Copy : "Copy All" ,
} ,
Home : {
NewChat : "New Chat" ,
DeleteChat : "Confirm to delete the selected conversation?" ,
} ,
Settings : {
Title : "Settings" ,
SubTitle : "All Settings" ,
Actions : {
ClearAll : "Clear All Data" ,
ResetAll : "Reset All Settings" ,
Close : "Close" ,
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-03-21 16:20:32 +00:00
Options : {
2023-03-28 13:29:30 +00:00
cn : "简体中文" ,
2023-03-21 16:20:32 +00:00
en : "English" ,
2023-03-28 13:29:30 +00:00
tw : "繁體中文" ,
2023-03-31 00:48:57 +00:00
es : "Español" ,
2023-04-02 17:23:50 +00:00
it : "Italiano" ,
2023-03-21 16:20:32 +00:00
} ,
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-03-31 05:16:12 +00:00
SendPreviewBubble : "Send Preview Bubble" ,
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-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-02 14:22:06 +00:00
SubTitle ( used : any ) {
return ` Used this month $ ${ used } ` ;
2023-03-29 17:45:26 +00:00
} ,
IsChecking : "Checking..." ,
Check : "Check Again" ,
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-03-21 16:20:32 +00:00
PresencePenlty : {
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 ) = >
"This is a summary of the chat history between the AI and the user as a recap: " +
content ,
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-04-02 17:48:43 +00:00
"Summarize our discussion briefly in 200 words or less to use as a prompt for future context." ,
2023-03-21 16:20:32 +00:00
} ,
ConfirmClearAll : "Confirm to clear all chat and setting data?" ,
} ,
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" ,
Add : "Add One" ,
} ,
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 ;