en.ts 8.2 KB

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