en.ts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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. 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. Update: {
  119. Version: (x: string) => `Version: ${x}`,
  120. IsLatest: "Latest version",
  121. CheckUpdate: "Check Update",
  122. IsChecking: "Checking update...",
  123. FoundUpdate: (x: string) => `Found new version: ${x}`,
  124. GoToUpdate: "Update",
  125. },
  126. SendKey: "Send Key",
  127. Theme: "Theme",
  128. TightBorder: "Tight Border",
  129. SendPreviewBubble: {
  130. Title: "Send Preview Bubble",
  131. SubTitle: "Preview markdown in bubble",
  132. },
  133. Mask: {
  134. Title: "Mask Splash Screen",
  135. SubTitle: "Show a mask splash screen before starting new chat",
  136. },
  137. Prompt: {
  138. Disable: {
  139. Title: "Disable auto-completion",
  140. SubTitle: "Input / to trigger auto-completion",
  141. },
  142. List: "Prompt List",
  143. ListCount: (builtin: number, custom: number) =>
  144. `${builtin} built-in, ${custom} user-defined`,
  145. Edit: "Edit",
  146. Modal: {
  147. Title: "Prompt List",
  148. Add: "Add One",
  149. Search: "Search Prompts",
  150. },
  151. EditModal: {
  152. Title: "Edit Prompt",
  153. },
  154. },
  155. HistoryCount: {
  156. Title: "Attached Messages Count",
  157. SubTitle: "Number of sent messages attached per request",
  158. },
  159. CompressThreshold: {
  160. Title: "History Compression Threshold",
  161. SubTitle:
  162. "Will compress if uncompressed messages length exceeds the value",
  163. },
  164. Token: {
  165. Title: "API Key",
  166. SubTitle: "Use your key to ignore access code limit",
  167. Placeholder: "OpenAI API Key",
  168. },
  169. Usage: {
  170. Title: "Account Balance",
  171. SubTitle(used: any, total: any) {
  172. return `Used this month $${used}, subscription $${total}`;
  173. },
  174. IsChecking: "Checking...",
  175. Check: "Check",
  176. NoAccess: "Enter API Key to check balance",
  177. },
  178. AccessCode: {
  179. Title: "Access Code",
  180. SubTitle: "Access control enabled",
  181. Placeholder: "Need Access Code",
  182. },
  183. Model: "Model",
  184. Temperature: {
  185. Title: "Temperature",
  186. SubTitle: "A larger value makes the more random output",
  187. },
  188. MaxTokens: {
  189. Title: "Max Tokens",
  190. SubTitle: "Maximum length of input tokens and generated tokens",
  191. },
  192. PresencePenalty: {
  193. Title: "Presence Penalty",
  194. SubTitle:
  195. "A larger value increases the likelihood to talk about new topics",
  196. },
  197. },
  198. Store: {
  199. DefaultTopic: "New Conversation",
  200. BotHello: "Hello! How can I assist you today?",
  201. Error: "Something went wrong, please try again later.",
  202. Prompt: {
  203. History: (content: string) =>
  204. "This is a summary of the chat history as a recap: " + content,
  205. Topic:
  206. "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.",
  207. Summarize:
  208. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  209. },
  210. },
  211. Copy: {
  212. Success: "Copied to clipboard",
  213. Failed: "Copy failed, please grant permission to access clipboard",
  214. },
  215. Context: {
  216. Toast: (x: any) => `With ${x} contextual prompts`,
  217. Edit: "Contextual and Memory Prompts",
  218. Add: "Add a Prompt",
  219. Clear: "Context Cleared",
  220. Revert: "Revert",
  221. },
  222. Plugin: {
  223. Name: "Plugin",
  224. },
  225. Mask: {
  226. Name: "Mask",
  227. Page: {
  228. Title: "Prompt Template",
  229. SubTitle: (count: number) => `${count} prompt templates`,
  230. Search: "Search Templates",
  231. Create: "Create",
  232. },
  233. Item: {
  234. Info: (count: number) => `${count} prompts`,
  235. Chat: "Chat",
  236. View: "View",
  237. Edit: "Edit",
  238. Delete: "Delete",
  239. DeleteConfirm: "Confirm to delete?",
  240. },
  241. EditModal: {
  242. Title: (readonly: boolean) =>
  243. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  244. Download: "Download",
  245. Clone: "Clone",
  246. },
  247. Config: {
  248. Avatar: "Bot Avatar",
  249. Name: "Bot Name",
  250. Sync: {
  251. Title: "Use Global Config",
  252. SubTitle: "Use global config in this chat",
  253. Confirm: "Confirm to override custom config with global config?",
  254. },
  255. HideContext: {
  256. Title: "Hide Context Prompts",
  257. SubTitle: "Do not show in-context prompts in chat",
  258. },
  259. },
  260. },
  261. NewChat: {
  262. Return: "Return",
  263. Skip: "Just Start",
  264. Title: "Pick a Mask",
  265. SubTitle: "Chat with the Soul behind the Mask",
  266. More: "Find More",
  267. NotShow: "Never Show Again",
  268. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  269. },
  270. UI: {
  271. Confirm: "Confirm",
  272. Cancel: "Cancel",
  273. Close: "Close",
  274. Create: "Create",
  275. Edit: "Edit",
  276. },
  277. };
  278. export default en;