en.ts 9.8 KB

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