en.ts 9.3 KB

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