en.ts 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. import { SubmitKey } from "../store/config";
  2. import { LocaleType } from "./index";
  3. // if you are adding a new translation, please use PartialLocaleType instead of LocaleType
  4. const en: LocaleType = {
  5. WIP: "Coming Soon...",
  6. Error: {
  7. Unauthorized:
  8. "Unauthorized access, please enter access code in [auth](/#/auth) page.",
  9. },
  10. Auth: {
  11. Title: "Need Access Code",
  12. Tips: "Please enter access code below",
  13. Input: "access code",
  14. Confirm: "Confirm",
  15. Later: "Later",
  16. },
  17. ChatItem: {
  18. ChatItemCount: (count: number) => `${count} messages`,
  19. },
  20. Chat: {
  21. SubTitle: (count: number) => `${count} messages`,
  22. Actions: {
  23. ChatList: "Go To Chat List",
  24. CompressedHistory: "Compressed History Memory Prompt",
  25. Export: "Export All Messages as Markdown",
  26. Copy: "Copy",
  27. Stop: "Stop",
  28. Retry: "Retry",
  29. Pin: "Pin",
  30. PinToastContent: "Pinned 1 messages to contextual prompts",
  31. PinToastAction: "View",
  32. Delete: "Delete",
  33. Edit: "Edit",
  34. },
  35. Commands: {
  36. new: "Start a new chat",
  37. newm: "Start a new chat with mask",
  38. next: "Next Chat",
  39. prev: "Previous Chat",
  40. clear: "Clear Context",
  41. del: "Delete Chat",
  42. },
  43. InputActions: {
  44. Stop: "Stop",
  45. ToBottom: "To Latest",
  46. Theme: {
  47. auto: "Auto",
  48. light: "Light Theme",
  49. dark: "Dark Theme",
  50. },
  51. Prompt: "Prompts",
  52. Masks: "Masks",
  53. Clear: "Clear Context",
  54. Settings: "Settings",
  55. },
  56. Rename: "Rename Chat",
  57. Typing: "Typing…",
  58. Input: (submitKey: string) => {
  59. var inputHints = `${submitKey} to send`;
  60. if (submitKey === String(SubmitKey.Enter)) {
  61. inputHints += ", Shift + Enter to wrap";
  62. }
  63. return inputHints + ", / to search prompts, : to use commands";
  64. },
  65. Send: "Send",
  66. Config: {
  67. Reset: "Reset to Default",
  68. SaveAs: "Save as Mask",
  69. },
  70. IsContext: "Contextual Prompt",
  71. },
  72. Export: {
  73. Title: "Export Messages",
  74. Copy: "Copy All",
  75. Download: "Download",
  76. MessageFromYou: "Message From You",
  77. MessageFromChatGPT: "Message From ChatGPT",
  78. Share: "Share to ShareGPT",
  79. Format: {
  80. Title: "Export Format",
  81. SubTitle: "Markdown or PNG Image",
  82. },
  83. IncludeContext: {
  84. Title: "Including Context",
  85. SubTitle: "Export context prompts in mask or not",
  86. },
  87. Steps: {
  88. Select: "Select",
  89. Preview: "Preview",
  90. },
  91. Image: {
  92. Toast: "Capturing Image...",
  93. Modal: "Long press or right click to save image",
  94. },
  95. },
  96. Select: {
  97. Search: "Search",
  98. All: "Select All",
  99. Latest: "Select Latest",
  100. Clear: "Clear",
  101. },
  102. Memory: {
  103. Title: "Memory Prompt",
  104. EmptyContent: "Nothing yet.",
  105. Send: "Send Memory",
  106. Copy: "Copy Memory",
  107. Reset: "Reset Session",
  108. ResetConfirm:
  109. "Resetting will clear the current conversation history and historical memory. Are you sure you want to reset?",
  110. },
  111. Home: {
  112. NewChat: "New Chat",
  113. DeleteChat: "Confirm to delete the selected conversation?",
  114. DeleteToast: "Chat Deleted",
  115. Revert: "Revert",
  116. },
  117. Settings: {
  118. Title: "Settings",
  119. SubTitle: "All Settings",
  120. Danger: {
  121. Reset: {
  122. Title: "Reset All Settings",
  123. SubTitle: "Reset all setting items to default",
  124. Action: "Reset",
  125. Confirm: "Confirm to reset all settings to default?",
  126. },
  127. Clear: {
  128. Title: "Clear All Data",
  129. SubTitle: "Clear all messages and settings",
  130. Action: "Clear",
  131. Confirm: "Confirm to clear all messages and settings?",
  132. },
  133. },
  134. Lang: {
  135. Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
  136. All: "All Languages",
  137. },
  138. Avatar: "Avatar",
  139. FontSize: {
  140. Title: "Font Size",
  141. SubTitle: "Adjust font size of chat content",
  142. },
  143. InjectSystemPrompts: {
  144. Title: "Inject System Prompts",
  145. SubTitle:
  146. "Forcefully add a simulated ChatGPT system prompt at the beginning of the message list for every request",
  147. },
  148. InputTemplate: {
  149. Title: "Input Template",
  150. SubTitle: "Newest message will be filled to this template",
  151. },
  152. Update: {
  153. Version: (x: string) => `Version: ${x}`,
  154. IsLatest: "Latest version",
  155. CheckUpdate: "Check Update",
  156. IsChecking: "Checking update...",
  157. FoundUpdate: (x: string) => `Found new version: ${x}`,
  158. GoToUpdate: "Update",
  159. },
  160. SendKey: "Send Key",
  161. Theme: "Theme",
  162. TightBorder: "Tight Border",
  163. SendPreviewBubble: {
  164. Title: "Send Preview Bubble",
  165. SubTitle: "Preview markdown in bubble",
  166. },
  167. Mask: {
  168. Splash: {
  169. Title: "Mask Splash Screen",
  170. SubTitle: "Show a mask splash screen before starting new chat",
  171. },
  172. Builtin: {
  173. Title: "Hide Builtin Masks",
  174. SubTitle: "Hide builtin masks in mask list",
  175. },
  176. },
  177. Prompt: {
  178. Disable: {
  179. Title: "Disable auto-completion",
  180. SubTitle: "Input / to trigger auto-completion",
  181. },
  182. List: "Prompt List",
  183. ListCount: (builtin: number, custom: number) =>
  184. `${builtin} built-in, ${custom} user-defined`,
  185. Edit: "Edit",
  186. Modal: {
  187. Title: "Prompt List",
  188. Add: "Add One",
  189. Search: "Search Prompts",
  190. },
  191. EditModal: {
  192. Title: "Edit Prompt",
  193. },
  194. },
  195. HistoryCount: {
  196. Title: "Attached Messages Count",
  197. SubTitle: "Number of sent messages attached per request",
  198. },
  199. CompressThreshold: {
  200. Title: "History Compression Threshold",
  201. SubTitle:
  202. "Will compress if uncompressed messages length exceeds the value",
  203. },
  204. Token: {
  205. Title: "API Key",
  206. SubTitle: "Use your key to ignore access code limit",
  207. Placeholder: "OpenAI API Key",
  208. },
  209. Usage: {
  210. Title: "Account Balance",
  211. SubTitle(used: any, total: any) {
  212. return `Used this month $${used}, subscription $${total}`;
  213. },
  214. IsChecking: "Checking...",
  215. Check: "Check",
  216. NoAccess: "Enter API Key to check balance",
  217. },
  218. AccessCode: {
  219. Title: "Access Code",
  220. SubTitle: "Access control enabled",
  221. Placeholder: "Need Access Code",
  222. },
  223. Endpoint: {
  224. Title: "Endpoint",
  225. SubTitle: "Custom endpoint must start with http(s)://",
  226. },
  227. CustomModel: {
  228. Title: "Custom Models",
  229. SubTitle: "Add extra model options, separate by comma",
  230. },
  231. Model: "Model",
  232. Temperature: {
  233. Title: "Temperature",
  234. SubTitle: "A larger value makes the more random output",
  235. },
  236. TopP: {
  237. Title: "Top P",
  238. SubTitle: "Do not alter this value together with temperature",
  239. },
  240. MaxTokens: {
  241. Title: "Max Tokens",
  242. SubTitle: "Maximum length of input tokens and generated tokens",
  243. },
  244. PresencePenalty: {
  245. Title: "Presence Penalty",
  246. SubTitle:
  247. "A larger value increases the likelihood to talk about new topics",
  248. },
  249. FrequencyPenalty: {
  250. Title: "Frequency Penalty",
  251. SubTitle:
  252. "A larger value decreasing the likelihood to repeat the same line",
  253. },
  254. },
  255. Store: {
  256. DefaultTopic: "New Conversation",
  257. BotHello: "Hello! How can I assist you today?",
  258. Error: "Something went wrong, please try again later.",
  259. Prompt: {
  260. History: (content: string) =>
  261. "This is a summary of the chat history as a recap: " + content,
  262. Topic:
  263. "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.",
  264. Summarize:
  265. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  266. },
  267. },
  268. Copy: {
  269. Success: "Copied to clipboard",
  270. Failed: "Copy failed, please grant permission to access clipboard",
  271. },
  272. Context: {
  273. Toast: (x: any) => `With ${x} contextual prompts`,
  274. Edit: "Current Chat Settings",
  275. Add: "Add a Prompt",
  276. Clear: "Context Cleared",
  277. Revert: "Revert",
  278. },
  279. Plugin: {
  280. Name: "Plugin",
  281. },
  282. Mask: {
  283. Name: "Mask",
  284. Page: {
  285. Title: "Prompt Template",
  286. SubTitle: (count: number) => `${count} prompt templates`,
  287. Search: "Search Templates",
  288. Create: "Create",
  289. },
  290. Item: {
  291. Info: (count: number) => `${count} prompts`,
  292. Chat: "Chat",
  293. View: "View",
  294. Edit: "Edit",
  295. Delete: "Delete",
  296. DeleteConfirm: "Confirm to delete?",
  297. },
  298. EditModal: {
  299. Title: (readonly: boolean) =>
  300. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  301. Download: "Download",
  302. Clone: "Clone",
  303. },
  304. Config: {
  305. Avatar: "Bot Avatar",
  306. Name: "Bot Name",
  307. Sync: {
  308. Title: "Use Global Config",
  309. SubTitle: "Use global config in this chat",
  310. Confirm: "Confirm to override custom config with global config?",
  311. },
  312. HideContext: {
  313. Title: "Hide Context Prompts",
  314. SubTitle: "Do not show in-context prompts in chat",
  315. },
  316. Share: {
  317. Title: "Share This Mask",
  318. SubTitle: "Generate a link to this mask",
  319. Action: "Copy Link",
  320. },
  321. },
  322. },
  323. NewChat: {
  324. Return: "Return",
  325. Skip: "Just Start",
  326. Title: "Pick a Mask",
  327. SubTitle: "Chat with the Soul behind the Mask",
  328. More: "Find More",
  329. NotShow: "Never Show Again",
  330. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  331. },
  332. UI: {
  333. Confirm: "Confirm",
  334. Cancel: "Cancel",
  335. Close: "Close",
  336. Create: "Create",
  337. Edit: "Edit",
  338. },
  339. Exporter: {
  340. Model: "Model",
  341. Messages: "Messages",
  342. Topic: "Topic",
  343. Time: "Time",
  344. },
  345. };
  346. export default en;