en.ts 7.4 KB

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