en.ts 7.4 KB

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