en.ts 10.0 KB

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