en.ts 10 KB

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