en.ts 8.7 KB

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