en.ts 13 KB

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