en.ts 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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. Endpoint: {
  184. Title: "Endpoint",
  185. SubTitle: "Custom endpoint must start with http(s)://",
  186. },
  187. Model: "Model",
  188. Temperature: {
  189. Title: "Temperature",
  190. SubTitle: "A larger value makes the more random output",
  191. },
  192. MaxTokens: {
  193. Title: "Max Tokens",
  194. SubTitle: "Maximum length of input tokens and generated tokens",
  195. },
  196. PresencePenalty: {
  197. Title: "Presence Penalty",
  198. SubTitle:
  199. "A larger value increases the likelihood to talk about new topics",
  200. },
  201. },
  202. Store: {
  203. DefaultTopic: "New Conversation",
  204. BotHello: "Hello! How can I assist you today?",
  205. Error: "Something went wrong, please try again later.",
  206. Prompt: {
  207. History: (content: string) =>
  208. "This is a summary of the chat history as a recap: " + content,
  209. Topic:
  210. "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.",
  211. Summarize:
  212. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  213. },
  214. },
  215. Copy: {
  216. Success: "Copied to clipboard",
  217. Failed: "Copy failed, please grant permission to access clipboard",
  218. },
  219. Context: {
  220. Toast: (x: any) => `With ${x} contextual prompts`,
  221. Edit: "Contextual and Memory Prompts",
  222. Add: "Add a Prompt",
  223. Clear: "Context Cleared",
  224. Revert: "Revert",
  225. },
  226. Plugin: {
  227. Name: "Plugin",
  228. },
  229. Mask: {
  230. Name: "Mask",
  231. Page: {
  232. Title: "Prompt Template",
  233. SubTitle: (count: number) => `${count} prompt templates`,
  234. Search: "Search Templates",
  235. Create: "Create",
  236. },
  237. Item: {
  238. Info: (count: number) => `${count} prompts`,
  239. Chat: "Chat",
  240. View: "View",
  241. Edit: "Edit",
  242. Delete: "Delete",
  243. DeleteConfirm: "Confirm to delete?",
  244. },
  245. EditModal: {
  246. Title: (readonly: boolean) =>
  247. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  248. Download: "Download",
  249. Clone: "Clone",
  250. },
  251. Config: {
  252. Avatar: "Bot Avatar",
  253. Name: "Bot Name",
  254. Sync: {
  255. Title: "Use Global Config",
  256. SubTitle: "Use global config in this chat",
  257. Confirm: "Confirm to override custom config with global config?",
  258. },
  259. HideContext: {
  260. Title: "Hide Context Prompts",
  261. SubTitle: "Do not show in-context prompts in chat",
  262. },
  263. },
  264. },
  265. NewChat: {
  266. Return: "Return",
  267. Skip: "Just Start",
  268. Title: "Pick a Mask",
  269. SubTitle: "Chat with the Soul behind the Mask",
  270. More: "Find More",
  271. NotShow: "Never Show Again",
  272. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  273. },
  274. UI: {
  275. Confirm: "Confirm",
  276. Cancel: "Cancel",
  277. Close: "Close",
  278. Create: "Create",
  279. Edit: "Edit",
  280. },
  281. };
  282. export default en;