en.ts 9.4 KB

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