123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- import { SubmitKey } from "../store/app";
- import type { LocaleType } from "./index";
- const en: LocaleType = {
- WIP: "WIP...",
- Error: {
- Unauthorized:
- "Unauthorized access, please enter access code in settings page.",
- },
- 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",
- Copy: "Copy",
- Stop: "Stop",
- Retry: "Retry",
- },
- Rename: "Rename Chat",
- Typing: "Typing…",
- 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;
- },
- 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",
- },
- Lang: {
- Name: "Language",
- Options: {
- cn: "简体中文",
- en: "English",
- tw: "繁體中文",
- es: "Español",
- },
- },
- Avatar: "Avatar",
- FontSize: {
- Title: "Font Size",
- SubTitle: "Adjust font size of chat content",
- },
- Update: {
- Version: (x: string) => `Version: ${x}`,
- IsLatest: "Latest version",
- CheckUpdate: "Check Update",
- IsChecking: "Checking update...",
- FoundUpdate: (x: string) => `Found new version: ${x}`,
- GoToUpdate: "Update",
- },
- SendKey: "Send Key",
- Theme: "Theme",
- TightBorder: "Tight Border",
- SendPreviewBubble: "Send Preview Bubble",
- Prompt: {
- Disable: {
- Title: "Disable auto-completion",
- SubTitle: "Input / to trigger auto-completion",
- },
- List: "Prompt List",
- ListCount: (builtin: number, custom: number) =>
- `${builtin} built-in, ${custom} user-defined`,
- Edit: "Edit",
- },
- HistoryCount: {
- Title: "Attached Messages Count",
- SubTitle: "Number of sent messages attached per request",
- },
- CompressThreshold: {
- Title: "History Compression Threshold",
- SubTitle:
- "Will compress if uncompressed messages length exceeds the value",
- },
- Token: {
- Title: "API Key",
- SubTitle: "Use your key to ignore access code limit",
- Placeholder: "OpenAI API Key",
- },
- Usage: {
- Title: "Account Balance",
- SubTitle(used: any) {
- return `Used this month $${used}`;
- },
- IsChecking: "Checking...",
- Check: "Check Again",
- },
- AccessCode: {
- Title: "Access Code",
- SubTitle: "Access control enabled",
- Placeholder: "Need Access Code",
- },
- Model: "Model",
- Temperature: {
- Title: "Temperature",
- SubTitle: "A larger value makes the more random output",
- },
- MaxTokens: {
- Title: "Max Tokens",
- SubTitle: "Maximum length of input tokens and generated tokens",
- },
- 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:
- "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.",
- Summarize:
- "Summarize our discussion briefly in 50 characters or less to use as a prompt for future context.",
- },
- ConfirmClearAll: "Confirm to clear all chat and setting data?",
- },
- Copy: {
- Success: "Copied to clipboard",
- Failed: "Copy failed, please grant permission to access clipboard",
- },
- };
- export default en;
|