en.ts 8.4 KB

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