en.ts 6.8 KB

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