en.ts 9.2 KB

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