en.ts 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. import { SubmitKey } from "../store/config";
  2. import { LocaleType } from "./index";
  3. // if you are adding a new translation, please use PartialLocaleType instead of LocaleType
  4. const en: LocaleType = {
  5. WIP: "Coming Soon...",
  6. Error: {
  7. Unauthorized:
  8. "Unauthorized access, please enter access code in [auth](/#/auth) page.",
  9. },
  10. Auth: {
  11. Title: "Need Access Code",
  12. Tips: "Please enter access code below",
  13. Input: "access code",
  14. Confirm: "Confirm",
  15. Later: "Later",
  16. },
  17. ChatItem: {
  18. ChatItemCount: (count: number) => `${count} messages`,
  19. },
  20. Chat: {
  21. SubTitle: (count: number) => `${count} messages`,
  22. EditMessage: {
  23. Topic: {
  24. Title: "Topic",
  25. SubTitle: "Change the current topic",
  26. },
  27. },
  28. Actions: {
  29. ChatList: "Go To Chat List",
  30. CompressedHistory: "Compressed History Memory Prompt",
  31. Export: "Export All Messages as Markdown",
  32. Copy: "Copy",
  33. Stop: "Stop",
  34. Retry: "Retry",
  35. Pin: "Pin",
  36. PinToastContent: "Pinned 1 messages to contextual prompts",
  37. PinToastAction: "View",
  38. Delete: "Delete",
  39. Edit: "Edit",
  40. },
  41. Commands: {
  42. new: "Start a new chat",
  43. newm: "Start a new chat with mask",
  44. next: "Next Chat",
  45. prev: "Previous Chat",
  46. clear: "Clear Context",
  47. del: "Delete Chat",
  48. },
  49. InputActions: {
  50. Stop: "Stop",
  51. ToBottom: "To Latest",
  52. Theme: {
  53. auto: "Auto",
  54. light: "Light Theme",
  55. dark: "Dark Theme",
  56. },
  57. Prompt: "Prompts",
  58. Masks: "Masks",
  59. Clear: "Clear Context",
  60. Settings: "Settings",
  61. },
  62. Rename: "Rename Chat",
  63. Typing: "Typing…",
  64. Input: (submitKey: string) => {
  65. var inputHints = `${submitKey} to send`;
  66. if (submitKey === String(SubmitKey.Enter)) {
  67. inputHints += ", Shift + Enter to wrap";
  68. }
  69. return inputHints + ", / to search prompts, : to use commands";
  70. },
  71. Send: "Send",
  72. Config: {
  73. Reset: "Reset to Default",
  74. SaveAs: "Save as Mask",
  75. },
  76. IsContext: "Contextual Prompt",
  77. },
  78. Export: {
  79. Title: "Export Messages",
  80. Copy: "Copy All",
  81. Download: "Download",
  82. MessageFromYou: "Message From You",
  83. MessageFromChatGPT: "Message From ChatGPT",
  84. Share: "Share to ShareGPT",
  85. Format: {
  86. Title: "Export Format",
  87. SubTitle: "Markdown or PNG Image",
  88. },
  89. IncludeContext: {
  90. Title: "Including Context",
  91. SubTitle: "Export context prompts in mask or not",
  92. },
  93. Steps: {
  94. Select: "Select",
  95. Preview: "Preview",
  96. },
  97. Image: {
  98. Toast: "Capturing Image...",
  99. Modal: "Long press or right click to save image",
  100. },
  101. },
  102. Select: {
  103. Search: "Search",
  104. All: "Select All",
  105. Latest: "Select Latest",
  106. Clear: "Clear",
  107. },
  108. Memory: {
  109. Title: "Memory Prompt",
  110. EmptyContent: "Nothing yet.",
  111. Send: "Send Memory",
  112. Copy: "Copy Memory",
  113. Reset: "Reset Session",
  114. ResetConfirm:
  115. "Resetting will clear the current conversation history and historical memory. Are you sure you want to reset?",
  116. },
  117. Home: {
  118. NewChat: "New Chat",
  119. DeleteChat: "Confirm to delete the selected conversation?",
  120. DeleteToast: "Chat Deleted",
  121. Revert: "Revert",
  122. },
  123. Settings: {
  124. Title: "Settings",
  125. SubTitle: "All Settings",
  126. Danger: {
  127. Reset: {
  128. Title: "Reset All Settings",
  129. SubTitle: "Reset all setting items to default",
  130. Action: "Reset",
  131. Confirm: "Confirm to reset all settings to default?",
  132. },
  133. Clear: {
  134. Title: "Clear All Data",
  135. SubTitle: "Clear all messages and settings",
  136. Action: "Clear",
  137. Confirm: "Confirm to clear all messages and settings?",
  138. },
  139. },
  140. Lang: {
  141. Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
  142. All: "All Languages",
  143. },
  144. Avatar: "Avatar",
  145. FontSize: {
  146. Title: "Font Size",
  147. SubTitle: "Adjust font size of chat content",
  148. },
  149. InjectSystemPrompts: {
  150. Title: "Inject System Prompts",
  151. SubTitle: "Inject a global system prompt for every request",
  152. },
  153. InputTemplate: {
  154. Title: "Input Template",
  155. SubTitle: "Newest message will be filled to this template",
  156. },
  157. Update: {
  158. Version: (x: string) => `Version: ${x}`,
  159. IsLatest: "Latest version",
  160. CheckUpdate: "Check Update",
  161. IsChecking: "Checking update...",
  162. FoundUpdate: (x: string) => `Found new version: ${x}`,
  163. GoToUpdate: "Update",
  164. },
  165. SendKey: "Send Key",
  166. Theme: "Theme",
  167. TightBorder: "Tight Border",
  168. SendPreviewBubble: {
  169. Title: "Send Preview Bubble",
  170. SubTitle: "Preview markdown in bubble",
  171. },
  172. Mask: {
  173. Splash: {
  174. Title: "Mask Splash Screen",
  175. SubTitle: "Show a mask splash screen before starting new chat",
  176. },
  177. Builtin: {
  178. Title: "Hide Builtin Masks",
  179. SubTitle: "Hide builtin masks in mask list",
  180. },
  181. },
  182. Prompt: {
  183. Disable: {
  184. Title: "Disable auto-completion",
  185. SubTitle: "Input / to trigger auto-completion",
  186. },
  187. List: "Prompt List",
  188. ListCount: (builtin: number, custom: number) =>
  189. `${builtin} built-in, ${custom} user-defined`,
  190. Edit: "Edit",
  191. Modal: {
  192. Title: "Prompt List",
  193. Add: "Add One",
  194. Search: "Search Prompts",
  195. },
  196. EditModal: {
  197. Title: "Edit Prompt",
  198. },
  199. },
  200. HistoryCount: {
  201. Title: "Attached Messages Count",
  202. SubTitle: "Number of sent messages attached per request",
  203. },
  204. CompressThreshold: {
  205. Title: "History Compression Threshold",
  206. SubTitle:
  207. "Will compress if uncompressed messages length exceeds the value",
  208. },
  209. Token: {
  210. Title: "API Key",
  211. SubTitle: "Use your key to ignore access code limit",
  212. Placeholder: "OpenAI API Key",
  213. },
  214. Usage: {
  215. Title: "Account Balance",
  216. SubTitle(used: any, total: any) {
  217. return `Used this month $${used}, subscription $${total}`;
  218. },
  219. IsChecking: "Checking...",
  220. Check: "Check",
  221. NoAccess: "Enter API Key to check balance",
  222. },
  223. AccessCode: {
  224. Title: "Access Code",
  225. SubTitle: "Access control enabled",
  226. Placeholder: "Need Access Code",
  227. },
  228. Endpoint: {
  229. Title: "Endpoint",
  230. SubTitle: "Custom endpoint must start with http(s)://",
  231. },
  232. CustomModel: {
  233. Title: "Custom Models",
  234. SubTitle: "Add extra model options, separate by comma",
  235. },
  236. Model: "Model",
  237. Temperature: {
  238. Title: "Temperature",
  239. SubTitle: "A larger value makes the more random output",
  240. },
  241. TopP: {
  242. Title: "Top P",
  243. SubTitle: "Do not alter this value together with temperature",
  244. },
  245. MaxTokens: {
  246. Title: "Max Tokens",
  247. SubTitle: "Maximum length of input tokens and generated tokens",
  248. },
  249. PresencePenalty: {
  250. Title: "Presence Penalty",
  251. SubTitle:
  252. "A larger value increases the likelihood to talk about new topics",
  253. },
  254. FrequencyPenalty: {
  255. Title: "Frequency Penalty",
  256. SubTitle:
  257. "A larger value decreasing the likelihood to repeat the same line",
  258. },
  259. },
  260. Store: {
  261. DefaultTopic: "New Conversation",
  262. BotHello: "Hello! How can I assist you today?",
  263. Error: "Something went wrong, please try again later.",
  264. Prompt: {
  265. History: (content: string) =>
  266. "This is a summary of the chat history as a recap: " + content,
  267. Topic:
  268. "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.",
  269. Summarize:
  270. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  271. },
  272. },
  273. Copy: {
  274. Success: "Copied to clipboard",
  275. Failed: "Copy failed, please grant permission to access clipboard",
  276. },
  277. Context: {
  278. Toast: (x: any) => `With ${x} contextual prompts`,
  279. Edit: "Current Chat Settings",
  280. Add: "Add a Prompt",
  281. Clear: "Context Cleared",
  282. Revert: "Revert",
  283. },
  284. Plugin: {
  285. Name: "Plugin",
  286. },
  287. Mask: {
  288. Name: "Mask",
  289. Page: {
  290. Title: "Prompt Template",
  291. SubTitle: (count: number) => `${count} prompt templates`,
  292. Search: "Search Templates",
  293. Create: "Create",
  294. },
  295. Item: {
  296. Info: (count: number) => `${count} prompts`,
  297. Chat: "Chat",
  298. View: "View",
  299. Edit: "Edit",
  300. Delete: "Delete",
  301. DeleteConfirm: "Confirm to delete?",
  302. },
  303. EditModal: {
  304. Title: (readonly: boolean) =>
  305. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  306. Download: "Download",
  307. Clone: "Clone",
  308. },
  309. Config: {
  310. Avatar: "Bot Avatar",
  311. Name: "Bot Name",
  312. Sync: {
  313. Title: "Use Global Config",
  314. SubTitle: "Use global config in this chat",
  315. Confirm: "Confirm to override custom config with global config?",
  316. },
  317. HideContext: {
  318. Title: "Hide Context Prompts",
  319. SubTitle: "Do not show in-context prompts in chat",
  320. },
  321. Share: {
  322. Title: "Share This Mask",
  323. SubTitle: "Generate a link to this mask",
  324. Action: "Copy Link",
  325. },
  326. },
  327. },
  328. NewChat: {
  329. Return: "Return",
  330. Skip: "Just Start",
  331. Title: "Pick a Mask",
  332. SubTitle: "Chat with the Soul behind the Mask",
  333. More: "Find More",
  334. NotShow: "Never Show Again",
  335. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  336. },
  337. UI: {
  338. Confirm: "Confirm",
  339. Cancel: "Cancel",
  340. Close: "Close",
  341. Create: "Create",
  342. Edit: "Edit",
  343. },
  344. Exporter: {
  345. Model: "Model",
  346. Messages: "Messages",
  347. Topic: "Topic",
  348. Time: "Time",
  349. },
  350. URLCommand: {
  351. Code: "Detected access code from url, confirm to apply? ",
  352. Settings: "Detected settings from url, confirm to apply?",
  353. },
  354. };
  355. export default en;