en.ts 8.5 KB

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