mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			232 lines
		
	
	
		
			6.6 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			232 lines
		
	
	
		
			6.6 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { SubmitKey } from "../store/config";
 | 
						||
import type { LocaleType } from "./index";
 | 
						||
 | 
						||
const en: LocaleType = {
 | 
						||
  WIP: "Coming Soon...",
 | 
						||
  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",
 | 
						||
      Delete: "Delete",
 | 
						||
    },
 | 
						||
    Rename: "Rename Chat",
 | 
						||
    Typing: "Typing…",
 | 
						||
    Input: (submitKey: string) => {
 | 
						||
      var inputHints = `${submitKey} to send`;
 | 
						||
      if (submitKey === String(SubmitKey.Enter)) {
 | 
						||
        inputHints += ", Shift + Enter to wrap";
 | 
						||
      }
 | 
						||
      return inputHints + ", / to search prompts";
 | 
						||
    },
 | 
						||
    Send: "Send",
 | 
						||
    Config: {
 | 
						||
      Reset: "Reset to Default",
 | 
						||
      SaveAs: "Save as Mask",
 | 
						||
    },
 | 
						||
  },
 | 
						||
  Export: {
 | 
						||
    Title: "All Messages",
 | 
						||
    Copy: "Copy All",
 | 
						||
    Download: "Download",
 | 
						||
    MessageFromYou: "Message From You",
 | 
						||
    MessageFromChatGPT: "Message From ChatGPT",
 | 
						||
  },
 | 
						||
  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?",
 | 
						||
  },
 | 
						||
  Home: {
 | 
						||
    NewChat: "New Chat",
 | 
						||
    DeleteChat: "Confirm to delete the selected conversation?",
 | 
						||
    DeleteToast: "Chat Deleted",
 | 
						||
    Revert: "Revert",
 | 
						||
  },
 | 
						||
  Settings: {
 | 
						||
    Title: "Settings",
 | 
						||
    SubTitle: "All Settings",
 | 
						||
    Actions: {
 | 
						||
      ClearAll: "Clear All Data",
 | 
						||
      ResetAll: "Reset All Settings",
 | 
						||
      Close: "Close",
 | 
						||
      ConfirmResetAll: "Are you sure you want to reset all configurations?",
 | 
						||
      ConfirmClearAll: "Are you sure you want to reset all data?",
 | 
						||
    },
 | 
						||
    Lang: {
 | 
						||
      Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
 | 
						||
      All: "All Languages",
 | 
						||
      Options: {
 | 
						||
        cn: "简体中文",
 | 
						||
        en: "English",
 | 
						||
        tw: "繁體中文",
 | 
						||
        es: "Español",
 | 
						||
        it: "Italiano",
 | 
						||
        tr: "Türkçe",
 | 
						||
        jp: "日本語",
 | 
						||
        de: "Deutsch",
 | 
						||
      },
 | 
						||
    },
 | 
						||
    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: {
 | 
						||
      Title: "Send Preview Bubble",
 | 
						||
      SubTitle: "Preview markdown in bubble",
 | 
						||
    },
 | 
						||
    Mask: {
 | 
						||
      Title: "Mask Splash Screen",
 | 
						||
      SubTitle: "Show a mask splash screen before starting new chat",
 | 
						||
    },
 | 
						||
    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",
 | 
						||
      Modal: {
 | 
						||
        Title: "Prompt List",
 | 
						||
        Add: "Add One",
 | 
						||
        Search: "Search Prompts",
 | 
						||
      },
 | 
						||
    },
 | 
						||
    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, total: any) {
 | 
						||
        return `Used this month $${used}, subscription $${total}`;
 | 
						||
      },
 | 
						||
      IsChecking: "Checking...",
 | 
						||
      Check: "Check",
 | 
						||
      NoAccess: "Enter API Key to check balance",
 | 
						||
    },
 | 
						||
    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 200 words or less to use as a prompt for future context.",
 | 
						||
    },
 | 
						||
  },
 | 
						||
  Copy: {
 | 
						||
    Success: "Copied to clipboard",
 | 
						||
    Failed: "Copy failed, please grant permission to access clipboard",
 | 
						||
  },
 | 
						||
  Context: {
 | 
						||
    Toast: (x: any) => `With ${x} contextual prompts`,
 | 
						||
    Edit: "Contextual and Memory Prompts",
 | 
						||
    Add: "Add a Prompt",
 | 
						||
  },
 | 
						||
  Plugin: {
 | 
						||
    Name: "Plugin",
 | 
						||
  },
 | 
						||
  Mask: {
 | 
						||
    Name: "Mask",
 | 
						||
    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",
 | 
						||
    },
 | 
						||
  },
 | 
						||
  NewChat: {
 | 
						||
    Return: "Return",
 | 
						||
    Skip: "Skip",
 | 
						||
    Title: "Pick a Mask",
 | 
						||
    SubTitle: "Chat with the Soul behind the Mask",
 | 
						||
    More: "Find More",
 | 
						||
    NotShow: "Not Show Again",
 | 
						||
    ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
 | 
						||
  },
 | 
						||
};
 | 
						||
 | 
						||
export default en;
 |