ChatGPT-Next-Web/app/locales/en.ts

343 lines
9.3 KiB
TypeScript
Raw Normal View History

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...",
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-21 16:20:32 +00:00
ChatItem: {
ChatItemCount: (count: number) => `${count} messages`,
},
Chat: {
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",
Copy: "Copy",
Stop: "Stop",
2023-03-26 10:59:09 +00:00
Retry: "Retry",
Pin: "Pin",
2023-07-09 08:15:58 +00:00
PinToastContent: "Pinned 1 messages to contextual prompts",
PinToastAction: "View",
Delete: "Delete",
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",
},
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…",
Input: (submitKey: string) => {
var inputHints = `${submitKey} to send`;
if (submitKey === String(SubmitKey.Enter)) {
inputHints += ", Shift + Enter to wrap";
}
2023-06-24 15:38:11 +00:00
return inputHints + ", / to search prompts, : to use commands";
},
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: {
Title: "Export Messages",
2023-03-21 16:20:32 +00:00
Copy: "Copy All",
Download: "Download",
MessageFromYou: "Message From You",
MessageFromChatGPT: "Message From ChatGPT",
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",
},
Image: {
Toast: "Capturing Image...",
Modal: "Long press or right click to save image",
},
},
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.",
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",
},
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",
SendPreviewBubble: {
Title: "Send Preview Bubble",
SubTitle: "Preview markdown in bubble",
},
Mask: {
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-03-28 17:39:14 +00:00
Prompt: {
Disable: {
Title: "Disable auto-completion",
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",
},
Usage: {
Title: "Account Balance",
2023-04-05 19:56:54 +00:00
SubTitle(used: any, total: any) {
return `Used this month $${used}, subscription $${total}`;
},
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",
},
AccessCode: {
Title: "Access Code",
SubTitle: "Access control enabled",
Placeholder: "Need Access Code",
},
Endpoint: {
Title: "Endpoint",
SubTitle: "Custom endpoint must start with http(s)://",
},
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
},
PresencePenalty: {
2023-03-21 16:20:32 +00:00
Title: "Presence Penalty",
SubTitle:
"A larger value increases the likelihood to talk about new topics",
},
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
},
Plugin: {
Name: "Plugin",
},
2023-04-26 17:16:21 +00:00
Mask: {
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",
Sync: {
Title: "Use Global Config",
SubTitle: "Use global config in this chat",
Confirm: "Confirm to override custom config with global config?",
},
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",
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",
NotShow: "Never Show Again",
ConfirmNoShow: "Confirm to disableYou 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",
},
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;