en.ts 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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. Splash: {
  158. Title: "Mask Splash Screen",
  159. SubTitle: "Show a mask splash screen before starting new chat",
  160. },
  161. Builtin: {
  162. Title: "Show Builtin Masks",
  163. SubTitle: "Show builtin masks in mask list",
  164. },
  165. },
  166. Prompt: {
  167. Disable: {
  168. Title: "Disable auto-completion",
  169. SubTitle: "Input / to trigger auto-completion",
  170. },
  171. List: "Prompt List",
  172. ListCount: (builtin: number, custom: number) =>
  173. `${builtin} built-in, ${custom} user-defined`,
  174. Edit: "Edit",
  175. Modal: {
  176. Title: "Prompt List",
  177. Add: "Add One",
  178. Search: "Search Prompts",
  179. },
  180. EditModal: {
  181. Title: "Edit Prompt",
  182. },
  183. },
  184. HistoryCount: {
  185. Title: "Attached Messages Count",
  186. SubTitle: "Number of sent messages attached per request",
  187. },
  188. CompressThreshold: {
  189. Title: "History Compression Threshold",
  190. SubTitle:
  191. "Will compress if uncompressed messages length exceeds the value",
  192. },
  193. Token: {
  194. Title: "API Key",
  195. SubTitle: "Use your key to ignore access code limit",
  196. Placeholder: "OpenAI API Key",
  197. },
  198. Usage: {
  199. Title: "Account Balance",
  200. SubTitle(used: any, total: any) {
  201. return `Used this month $${used}, subscription $${total}`;
  202. },
  203. IsChecking: "Checking...",
  204. Check: "Check",
  205. NoAccess: "Enter API Key to check balance",
  206. },
  207. AccessCode: {
  208. Title: "Access Code",
  209. SubTitle: "Access control enabled",
  210. Placeholder: "Need Access Code",
  211. },
  212. Endpoint: {
  213. Title: "Endpoint",
  214. SubTitle: "Custom endpoint must start with http(s)://",
  215. },
  216. Model: "Model",
  217. Temperature: {
  218. Title: "Temperature",
  219. SubTitle: "A larger value makes the more random output",
  220. },
  221. TopP: {
  222. Title: "Top P",
  223. SubTitle: "Do not alter this value together with temperature",
  224. },
  225. MaxTokens: {
  226. Title: "Max Tokens",
  227. SubTitle: "Maximum length of input tokens and generated tokens",
  228. },
  229. PresencePenalty: {
  230. Title: "Presence Penalty",
  231. SubTitle:
  232. "A larger value increases the likelihood to talk about new topics",
  233. },
  234. FrequencyPenalty: {
  235. Title: "Frequency Penalty",
  236. SubTitle:
  237. "A larger value decreasing the likelihood to repeat the same line",
  238. },
  239. },
  240. Store: {
  241. DefaultTopic: "New Conversation",
  242. BotHello: "Hello! How can I assist you today?",
  243. Error: "Something went wrong, please try again later.",
  244. Prompt: {
  245. History: (content: string) =>
  246. "This is a summary of the chat history as a recap: " + content,
  247. Topic:
  248. "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.",
  249. Summarize:
  250. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  251. },
  252. },
  253. Copy: {
  254. Success: "Copied to clipboard",
  255. Failed: "Copy failed, please grant permission to access clipboard",
  256. },
  257. Context: {
  258. Toast: (x: any) => `With ${x} contextual prompts`,
  259. Edit: "Current Chat Settings",
  260. Add: "Add a Prompt",
  261. Clear: "Context Cleared",
  262. Revert: "Revert",
  263. },
  264. Plugin: {
  265. Name: "Plugin",
  266. },
  267. Mask: {
  268. Name: "Mask",
  269. Page: {
  270. Title: "Prompt Template",
  271. SubTitle: (count: number) => `${count} prompt templates`,
  272. Search: "Search Templates",
  273. Create: "Create",
  274. },
  275. Item: {
  276. Info: (count: number) => `${count} prompts`,
  277. Chat: "Chat",
  278. View: "View",
  279. Edit: "Edit",
  280. Delete: "Delete",
  281. DeleteConfirm: "Confirm to delete?",
  282. },
  283. EditModal: {
  284. Title: (readonly: boolean) =>
  285. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  286. Download: "Download",
  287. Clone: "Clone",
  288. },
  289. Config: {
  290. Avatar: "Bot Avatar",
  291. Name: "Bot Name",
  292. Sync: {
  293. Title: "Use Global Config",
  294. SubTitle: "Use global config in this chat",
  295. Confirm: "Confirm to override custom config with global config?",
  296. },
  297. HideContext: {
  298. Title: "Hide Context Prompts",
  299. SubTitle: "Do not show in-context prompts in chat",
  300. },
  301. },
  302. },
  303. NewChat: {
  304. Return: "Return",
  305. Skip: "Just Start",
  306. Title: "Pick a Mask",
  307. SubTitle: "Chat with the Soul behind the Mask",
  308. More: "Find More",
  309. NotShow: "Never Show Again",
  310. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  311. },
  312. UI: {
  313. Confirm: "Confirm",
  314. Cancel: "Cancel",
  315. Close: "Close",
  316. Create: "Create",
  317. Edit: "Edit",
  318. },
  319. Exporter: {
  320. Model: "Model",
  321. Messages: "Messages",
  322. Topic: "Topic",
  323. Time: "Time",
  324. },
  325. };
  326. export default en;