en.ts 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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. },
  90. Select: {
  91. Search: "Search",
  92. All: "Select All",
  93. Latest: "Select Latest",
  94. Clear: "Clear",
  95. },
  96. Memory: {
  97. Title: "Memory Prompt",
  98. EmptyContent: "Nothing yet.",
  99. Send: "Send Memory",
  100. Copy: "Copy Memory",
  101. Reset: "Reset Session",
  102. ResetConfirm:
  103. "Resetting will clear the current conversation history and historical memory. Are you sure you want to reset?",
  104. },
  105. Home: {
  106. NewChat: "New Chat",
  107. DeleteChat: "Confirm to delete the selected conversation?",
  108. DeleteToast: "Chat Deleted",
  109. Revert: "Revert",
  110. },
  111. Settings: {
  112. Title: "Settings",
  113. SubTitle: "All Settings",
  114. Danger: {
  115. Reset: {
  116. Title: "Reset All Settings",
  117. SubTitle: "Reset all setting items to default",
  118. Action: "Reset",
  119. Confirm: "Confirm to reset all settings to default?",
  120. },
  121. Clear: {
  122. Title: "Clear All Data",
  123. SubTitle: "Clear all messages and settings",
  124. Action: "Clear",
  125. Confirm: "Confirm to clear all messages and settings?",
  126. },
  127. },
  128. Lang: {
  129. Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
  130. All: "All Languages",
  131. },
  132. Avatar: "Avatar",
  133. FontSize: {
  134. Title: "Font Size",
  135. SubTitle: "Adjust font size of chat content",
  136. },
  137. InputTemplate: {
  138. Title: "Input Template",
  139. SubTitle: "Newest message will be filled to this template",
  140. },
  141. Update: {
  142. Version: (x: string) => `Version: ${x}`,
  143. IsLatest: "Latest version",
  144. CheckUpdate: "Check Update",
  145. IsChecking: "Checking update...",
  146. FoundUpdate: (x: string) => `Found new version: ${x}`,
  147. GoToUpdate: "Update",
  148. },
  149. SendKey: "Send Key",
  150. Theme: "Theme",
  151. TightBorder: "Tight Border",
  152. SendPreviewBubble: {
  153. Title: "Send Preview Bubble",
  154. SubTitle: "Preview markdown in bubble",
  155. },
  156. Mask: {
  157. Title: "Mask Splash Screen",
  158. SubTitle: "Show a mask splash screen before starting new chat",
  159. },
  160. Prompt: {
  161. Disable: {
  162. Title: "Disable auto-completion",
  163. SubTitle: "Input / to trigger auto-completion",
  164. },
  165. List: "Prompt List",
  166. ListCount: (builtin: number, custom: number) =>
  167. `${builtin} built-in, ${custom} user-defined`,
  168. Edit: "Edit",
  169. Modal: {
  170. Title: "Prompt List",
  171. Add: "Add One",
  172. Search: "Search Prompts",
  173. },
  174. EditModal: {
  175. Title: "Edit Prompt",
  176. },
  177. },
  178. HistoryCount: {
  179. Title: "Attached Messages Count",
  180. SubTitle: "Number of sent messages attached per request",
  181. },
  182. CompressThreshold: {
  183. Title: "History Compression Threshold",
  184. SubTitle:
  185. "Will compress if uncompressed messages length exceeds the value",
  186. },
  187. Token: {
  188. Title: "API Key",
  189. SubTitle: "Use your key to ignore access code limit",
  190. Placeholder: "OpenAI API Key",
  191. },
  192. Usage: {
  193. Title: "Account Balance",
  194. SubTitle(used: any, total: any) {
  195. return `Used this month $${used}, subscription $${total}`;
  196. },
  197. IsChecking: "Checking...",
  198. Check: "Check",
  199. NoAccess: "Enter API Key to check balance",
  200. },
  201. AccessCode: {
  202. Title: "Access Code",
  203. SubTitle: "Access control enabled",
  204. Placeholder: "Need Access Code",
  205. },
  206. Endpoint: {
  207. Title: "Endpoint",
  208. SubTitle: "Custom endpoint must start with http(s)://",
  209. },
  210. Model: "Model",
  211. Temperature: {
  212. Title: "Temperature",
  213. SubTitle: "A larger value makes the more random output",
  214. },
  215. MaxTokens: {
  216. Title: "Max Tokens",
  217. SubTitle: "Maximum length of input tokens and generated tokens",
  218. },
  219. PresencePenalty: {
  220. Title: "Presence Penalty",
  221. SubTitle:
  222. "A larger value increases the likelihood to talk about new topics",
  223. },
  224. FrequencyPenalty: {
  225. Title: "Frequency Penalty",
  226. SubTitle:
  227. "A larger value decreasing the likelihood to repeat the same line",
  228. },
  229. },
  230. Store: {
  231. DefaultTopic: "New Conversation",
  232. BotHello: "Hello! How can I assist you today?",
  233. Error: "Something went wrong, please try again later.",
  234. Prompt: {
  235. History: (content: string) =>
  236. "This is a summary of the chat history as a recap: " + content,
  237. Topic:
  238. "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.",
  239. Summarize:
  240. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  241. },
  242. },
  243. Copy: {
  244. Success: "Copied to clipboard",
  245. Failed: "Copy failed, please grant permission to access clipboard",
  246. },
  247. Context: {
  248. Toast: (x: any) => `With ${x} contextual prompts`,
  249. Edit: "Contextual and Memory Prompts",
  250. Add: "Add a Prompt",
  251. Clear: "Context Cleared",
  252. Revert: "Revert",
  253. },
  254. Plugin: {
  255. Name: "Plugin",
  256. },
  257. Mask: {
  258. Name: "Mask",
  259. Page: {
  260. Title: "Prompt Template",
  261. SubTitle: (count: number) => `${count} prompt templates`,
  262. Search: "Search Templates",
  263. Create: "Create",
  264. },
  265. Item: {
  266. Info: (count: number) => `${count} prompts`,
  267. Chat: "Chat",
  268. View: "View",
  269. Edit: "Edit",
  270. Delete: "Delete",
  271. DeleteConfirm: "Confirm to delete?",
  272. },
  273. EditModal: {
  274. Title: (readonly: boolean) =>
  275. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  276. Download: "Download",
  277. Clone: "Clone",
  278. },
  279. Config: {
  280. Avatar: "Bot Avatar",
  281. Name: "Bot Name",
  282. Sync: {
  283. Title: "Use Global Config",
  284. SubTitle: "Use global config in this chat",
  285. Confirm: "Confirm to override custom config with global config?",
  286. },
  287. HideContext: {
  288. Title: "Hide Context Prompts",
  289. SubTitle: "Do not show in-context prompts in chat",
  290. },
  291. },
  292. },
  293. NewChat: {
  294. Return: "Return",
  295. Skip: "Just Start",
  296. Title: "Pick a Mask",
  297. SubTitle: "Chat with the Soul behind the Mask",
  298. More: "Find More",
  299. NotShow: "Never Show Again",
  300. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  301. },
  302. UI: {
  303. Confirm: "Confirm",
  304. Cancel: "Cancel",
  305. Close: "Close",
  306. Create: "Create",
  307. Edit: "Edit",
  308. },
  309. Exporter: {
  310. Model: "Model",
  311. Messages: "Messages",
  312. Topic: "Topic",
  313. Time: "Time",
  314. },
  315. };
  316. export default en;