en.ts 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. import { SubmitKey } from "../store/config";
  2. import type { LocaleType } from "./index";
  3. const en: LocaleType = {
  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: {
  68. Confirm: "Are you sure you want to reset all configurations?",
  69. },
  70. ConfirmClearAll: {
  71. Confirm: "Are you sure you want to reset all chat?",
  72. },
  73. },
  74. Lang: {
  75. Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
  76. All: "All Languages",
  77. Options: {
  78. cn: "简体中文",
  79. en: "English",
  80. tw: "繁體中文",
  81. es: "Español",
  82. it: "Italiano",
  83. tr: "Türkçe",
  84. jp: "日本語",
  85. de: "Deutsch",
  86. },
  87. },
  88. Avatar: "Avatar",
  89. FontSize: {
  90. Title: "Font Size",
  91. SubTitle: "Adjust font size of chat content",
  92. },
  93. Update: {
  94. Version: (x: string) => `Version: ${x}`,
  95. IsLatest: "Latest version",
  96. CheckUpdate: "Check Update",
  97. IsChecking: "Checking update...",
  98. FoundUpdate: (x: string) => `Found new version: ${x}`,
  99. GoToUpdate: "Update",
  100. },
  101. SendKey: "Send Key",
  102. Theme: "Theme",
  103. TightBorder: "Tight Border",
  104. SendPreviewBubble: "Send Preview Bubble",
  105. Prompt: {
  106. Disable: {
  107. Title: "Disable auto-completion",
  108. SubTitle: "Input / to trigger auto-completion",
  109. },
  110. List: "Prompt List",
  111. ListCount: (builtin: number, custom: number) =>
  112. `${builtin} built-in, ${custom} user-defined`,
  113. Edit: "Edit",
  114. Modal: {
  115. Title: "Prompt List",
  116. Add: "Add One",
  117. Search: "Search Prompts",
  118. },
  119. },
  120. HistoryCount: {
  121. Title: "Attached Messages Count",
  122. SubTitle: "Number of sent messages attached per request",
  123. },
  124. CompressThreshold: {
  125. Title: "History Compression Threshold",
  126. SubTitle:
  127. "Will compress if uncompressed messages length exceeds the value",
  128. },
  129. Token: {
  130. Title: "API Key",
  131. SubTitle: "Use your key to ignore access code limit",
  132. Placeholder: "OpenAI API Key",
  133. },
  134. Usage: {
  135. Title: "Account Balance",
  136. SubTitle(used: any, total: any) {
  137. return `Used this month $${used}, subscription $${total}`;
  138. },
  139. IsChecking: "Checking...",
  140. Check: "Check",
  141. NoAccess: "Enter API Key to check balance",
  142. },
  143. AccessCode: {
  144. Title: "Access Code",
  145. SubTitle: "Access control enabled",
  146. Placeholder: "Need Access Code",
  147. },
  148. Model: "Model",
  149. Temperature: {
  150. Title: "Temperature",
  151. SubTitle: "A larger value makes the more random output",
  152. },
  153. MaxTokens: {
  154. Title: "Max Tokens",
  155. SubTitle: "Maximum length of input tokens and generated tokens",
  156. },
  157. PresencePenlty: {
  158. Title: "Presence Penalty",
  159. SubTitle:
  160. "A larger value increases the likelihood to talk about new topics",
  161. },
  162. },
  163. Store: {
  164. DefaultTopic: "New Conversation",
  165. BotHello: "Hello! How can I assist you today?",
  166. Error: "Something went wrong, please try again later.",
  167. Prompt: {
  168. History: (content: string) =>
  169. "This is a summary of the chat history between the AI and the user as a recap: " +
  170. content,
  171. Topic:
  172. "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.",
  173. Summarize:
  174. "Summarize our discussion briefly in 200 words or less to use as a prompt for future context.",
  175. },
  176. ConfirmClearAll: "Confirm to clear all chat and setting data?",
  177. },
  178. Copy: {
  179. Success: "Copied to clipboard",
  180. Failed: "Copy failed, please grant permission to access clipboard",
  181. },
  182. Context: {
  183. Toast: (x: any) => `With ${x} contextual prompts`,
  184. Edit: "Contextual and Memory Prompts",
  185. Add: "Add a Prompt",
  186. },
  187. Mask: {
  188. Page: {
  189. Title: "Prompt Template",
  190. SubTitle: (count: number) => `${count} prompt templates`,
  191. Search: "Search Templates",
  192. Create: "Create",
  193. },
  194. Item: {
  195. Info: (count: number) => `${count} prompts`,
  196. Chat: "Chat",
  197. View: "View",
  198. Edit: "Edit",
  199. Delete: "Delete",
  200. DeleteConfirm: "Confirm to delete?",
  201. },
  202. EditModal: {
  203. Title: (readonly: boolean) =>
  204. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  205. Download: "Download",
  206. Clone: "Clone",
  207. },
  208. Config: {
  209. Avatar: "Bot Avatar",
  210. Name: "Bot Name",
  211. },
  212. },
  213. NewChat: {
  214. Return: "Return",
  215. Skip: "Skip",
  216. Title: "Pick a Mask",
  217. SubTitle: "Chat with the Soul behind the Mask",
  218. More: "Find More",
  219. },
  220. };
  221. export default en;