en.ts 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  1. import { getClientConfig } from "../config/client";
  2. import { SubmitKey } from "../store/config";
  3. import { LocaleType } from "./index";
  4. import { SAAS_CHAT_UTM_URL } from "@/app/constant";
  5. // if you are adding a new translation, please use PartialLocaleType instead of LocaleType
  6. const isApp = !!getClientConfig()?.isApp;
  7. const en: LocaleType = {
  8. WIP: "Coming Soon...",
  9. Error: {
  10. Unauthorized: isApp
  11. ? `😆 Oops, there's an issue. No worries:
  12. \\ 1️⃣ New here? [Click to start chatting now 🚀](${SAAS_CHAT_UTM_URL})
  13. \\ 2️⃣ Want to use your own OpenAI resources? [Click here](/#/settings) to change settings ⚙️`
  14. : `😆 Oops, there's an issue. Let's fix it:
  15. \ 1️⃣ New here? [Click to start chatting now 🚀](${SAAS_CHAT_UTM_URL})
  16. \ 2️⃣ Using a private setup? [Click here](/#/auth) to enter your key 🔑
  17. \ 3️⃣ Want to use your own OpenAI resources? [Click here](/#/settings) to change settings ⚙️
  18. `,
  19. },
  20. Auth: {
  21. Return: "Return",
  22. Title: "Need Access Code",
  23. Tips: "Please enter access code below",
  24. SubTips: "Or enter your OpenAI or Google API Key",
  25. Input: "access code",
  26. Confirm: "Confirm",
  27. Later: "Later",
  28. SaasTips: "Too Complex, Use Immediately Now",
  29. TopTips:
  30. "🥳 NextChat AI launch promotion: Instantly unlock the latest models like OpenAI o1, GPT-4o, Claude-3.5!",
  31. },
  32. ChatItem: {
  33. ChatItemCount: (count: number) => `${count} messages`,
  34. },
  35. Chat: {
  36. SubTitle: (count: number) => `${count} messages`,
  37. EditMessage: {
  38. Title: "Edit All Messages",
  39. Topic: {
  40. Title: "Topic",
  41. SubTitle: "Change the current topic",
  42. },
  43. },
  44. Actions: {
  45. ChatList: "Go To Chat List",
  46. CompressedHistory: "Compressed History Memory Prompt",
  47. Export: "Export All Messages as Markdown",
  48. Copy: "Copy",
  49. Stop: "Stop",
  50. Retry: "Retry",
  51. Pin: "Pin",
  52. PinToastContent: "Pinned 1 messages to contextual prompts",
  53. PinToastAction: "View",
  54. Delete: "Delete",
  55. Edit: "Edit",
  56. FullScreen: "FullScreen",
  57. RefreshTitle: "Refresh Title",
  58. RefreshToast: "Title refresh request sent",
  59. Speech: "Play",
  60. StopSpeech: "Stop",
  61. },
  62. Commands: {
  63. new: "Start a new chat",
  64. newm: "Start a new chat with mask",
  65. next: "Next Chat",
  66. prev: "Previous Chat",
  67. clear: "Clear Context",
  68. fork: "Copy Chat",
  69. del: "Delete Chat",
  70. },
  71. InputActions: {
  72. Stop: "Stop",
  73. ToBottom: "To Latest",
  74. Theme: {
  75. auto: "Auto",
  76. light: "Light Theme",
  77. dark: "Dark Theme",
  78. },
  79. Prompt: "Prompts",
  80. Masks: "Masks",
  81. Clear: "Clear Context",
  82. Settings: "Settings",
  83. UploadImage: "Upload Images",
  84. },
  85. Rename: "Rename Chat",
  86. Typing: "Typing…",
  87. Input: (submitKey: string) => {
  88. var inputHints = `${submitKey} to send`;
  89. if (submitKey === String(SubmitKey.Enter)) {
  90. inputHints += ", Shift + Enter to wrap";
  91. }
  92. return inputHints + ", / to search prompts, : to use commands";
  93. },
  94. Send: "Send",
  95. StartSpeak: "Start Speak",
  96. StopSpeak: "Stop Speak",
  97. Config: {
  98. Reset: "Reset to Default",
  99. SaveAs: "Save as Mask",
  100. },
  101. IsContext: "Contextual Prompt",
  102. ShortcutKey: {
  103. Title: "Keyboard Shortcuts",
  104. newChat: "Open New Chat",
  105. focusInput: "Focus Input Field",
  106. copyLastMessage: "Copy Last Reply",
  107. copyLastCode: "Copy Last Code Block",
  108. showShortcutKey: "Show Shortcuts",
  109. clearContext: "Clear Context",
  110. },
  111. },
  112. Export: {
  113. Title: "Export Messages",
  114. Copy: "Copy All",
  115. Download: "Download",
  116. MessageFromYou: "Message From You",
  117. MessageFromChatGPT: "Message From ChatGPT",
  118. Share: "Share to ShareGPT",
  119. Format: {
  120. Title: "Export Format",
  121. SubTitle: "Markdown or PNG Image",
  122. },
  123. IncludeContext: {
  124. Title: "Including Context",
  125. SubTitle: "Export context prompts in mask or not",
  126. },
  127. Steps: {
  128. Select: "Select",
  129. Preview: "Preview",
  130. },
  131. Image: {
  132. Toast: "Capturing Image...",
  133. Modal: "Long press or right click to save image",
  134. },
  135. Artifacts: {
  136. Title: "Share Artifacts",
  137. Error: "Share Error",
  138. },
  139. },
  140. Select: {
  141. Search: "Search",
  142. All: "Select All",
  143. Latest: "Select Latest",
  144. Clear: "Clear",
  145. },
  146. Memory: {
  147. Title: "Memory Prompt",
  148. EmptyContent: "Nothing yet.",
  149. Send: "Send Memory",
  150. Copy: "Copy Memory",
  151. Reset: "Reset Session",
  152. ResetConfirm:
  153. "Resetting will clear the current conversation history and historical memory. Are you sure you want to reset?",
  154. },
  155. Home: {
  156. NewChat: "New Chat",
  157. DeleteChat: "Confirm to delete the selected conversation?",
  158. DeleteToast: "Chat Deleted",
  159. Revert: "Revert",
  160. },
  161. Settings: {
  162. Title: "Settings",
  163. SubTitle: "All Settings",
  164. ShowPassword: "ShowPassword",
  165. Danger: {
  166. Reset: {
  167. Title: "Reset All Settings",
  168. SubTitle: "Reset all setting items to default",
  169. Action: "Reset",
  170. Confirm: "Confirm to reset all settings to default?",
  171. },
  172. Clear: {
  173. Title: "Clear All Data",
  174. SubTitle: "Clear all messages and settings",
  175. Action: "Clear",
  176. Confirm: "Confirm to clear all messages and settings?",
  177. },
  178. },
  179. Lang: {
  180. Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
  181. All: "All Languages",
  182. },
  183. Avatar: "Avatar",
  184. FontSize: {
  185. Title: "Font Size",
  186. SubTitle: "Adjust font size of chat content",
  187. },
  188. FontFamily: {
  189. Title: "Chat Font Family",
  190. SubTitle:
  191. "Font Family of the chat content, leave empty to apply global default font",
  192. Placeholder: "Font Family Name",
  193. },
  194. InjectSystemPrompts: {
  195. Title: "Inject System Prompts",
  196. SubTitle: "Inject a global system prompt for every request",
  197. },
  198. InputTemplate: {
  199. Title: "Input Template",
  200. SubTitle: "Newest message will be filled to this template",
  201. },
  202. SendKey: "Send Key",
  203. Theme: "Theme",
  204. TightBorder: "Tight Border",
  205. SendPreviewBubble: {
  206. Title: "Send Preview Bubble",
  207. SubTitle: "Preview markdown in bubble",
  208. },
  209. AutoGenerateTitle: {
  210. Title: "Auto Generate Title",
  211. SubTitle: "Generate a suitable title based on the conversation content",
  212. },
  213. Sync: {
  214. CloudState: "Last Update",
  215. NotSyncYet: "Not sync yet",
  216. Success: "Sync Success",
  217. Fail: "Sync Fail",
  218. Config: {
  219. Modal: {
  220. Title: "Config Sync",
  221. Check: "Check Connection",
  222. },
  223. SyncType: {
  224. Title: "Sync Type",
  225. SubTitle: "Choose your favorite sync service",
  226. },
  227. Proxy: {
  228. Title: "Enable CORS Proxy",
  229. SubTitle: "Enable a proxy to avoid cross-origin restrictions",
  230. },
  231. ProxyUrl: {
  232. Title: "Proxy Endpoint",
  233. SubTitle:
  234. "Only applicable to the built-in CORS proxy for this project",
  235. },
  236. WebDav: {
  237. Endpoint: "WebDAV Endpoint",
  238. UserName: "User Name",
  239. Password: "Password",
  240. },
  241. UpStash: {
  242. Endpoint: "UpStash Redis REST Url",
  243. UserName: "Backup Name",
  244. Password: "UpStash Redis REST Token",
  245. },
  246. },
  247. LocalState: "Local Data",
  248. Overview: (overview: any) => {
  249. return `${overview.chat} chats,${overview.message} messages,${overview.prompt} prompts,${overview.mask} masks`;
  250. },
  251. ImportFailed: "Failed to import from file",
  252. },
  253. Mask: {
  254. Splash: {
  255. Title: "Mask Splash Screen",
  256. SubTitle: "Show a mask splash screen before starting new chat",
  257. },
  258. Builtin: {
  259. Title: "Hide Builtin Masks",
  260. SubTitle: "Hide builtin masks in mask list",
  261. },
  262. },
  263. Prompt: {
  264. Disable: {
  265. Title: "Disable auto-completion",
  266. SubTitle: "Input / to trigger auto-completion",
  267. },
  268. List: "Prompt List",
  269. ListCount: (builtin: number, custom: number) =>
  270. `${builtin} built-in, ${custom} user-defined`,
  271. Edit: "Edit",
  272. Modal: {
  273. Title: "Prompt List",
  274. Add: "Add One",
  275. Search: "Search Prompts",
  276. },
  277. EditModal: {
  278. Title: "Edit Prompt",
  279. },
  280. },
  281. HistoryCount: {
  282. Title: "Attached Messages Count",
  283. SubTitle: "Number of sent messages attached per request",
  284. },
  285. CompressThreshold: {
  286. Title: "History Compression Threshold",
  287. SubTitle:
  288. "Will compress if uncompressed messages length exceeds the value",
  289. },
  290. Access: {
  291. SaasStart: {
  292. Title: "Use NextChat AI",
  293. Label: " (Most Cost-Effective Option)",
  294. SubTitle:
  295. "Maintained by NextChat, zero setup needed, unlock OpenAI o1, GPT-4o," +
  296. " Claude-3.5 and more",
  297. ChatNow: "Start Now",
  298. },
  299. AccessCode: {
  300. Title: "Access Code",
  301. SubTitle: "Access control Enabled",
  302. Placeholder: "Enter Code",
  303. },
  304. CustomEndpoint: {
  305. Title: "Custom Endpoint",
  306. SubTitle: "Use custom Azure or OpenAI service",
  307. },
  308. Provider: {
  309. Title: "Model Provider",
  310. SubTitle: "Select Azure or OpenAI",
  311. },
  312. OpenAI: {
  313. ApiKey: {
  314. Title: "OpenAI API Key",
  315. SubTitle: "User custom OpenAI Api Key",
  316. Placeholder: "sk-xxx",
  317. },
  318. Endpoint: {
  319. Title: "OpenAI Endpoint",
  320. SubTitle: "Must start with http(s):// or use /api/openai as default",
  321. },
  322. },
  323. Azure: {
  324. ApiKey: {
  325. Title: "Azure Api Key",
  326. SubTitle: "Check your api key from Azure console",
  327. Placeholder: "Azure Api Key",
  328. },
  329. Endpoint: {
  330. Title: "Azure Endpoint",
  331. SubTitle: "Example: ",
  332. },
  333. ApiVerion: {
  334. Title: "Azure Api Version",
  335. SubTitle: "Check your api version from azure console",
  336. },
  337. },
  338. Anthropic: {
  339. ApiKey: {
  340. Title: "Anthropic API Key",
  341. SubTitle:
  342. "Use a custom Anthropic Key to bypass password access restrictions",
  343. Placeholder: "Anthropic API Key",
  344. },
  345. Endpoint: {
  346. Title: "Endpoint Address",
  347. SubTitle: "Example: ",
  348. },
  349. ApiVerion: {
  350. Title: "API Version (claude api version)",
  351. SubTitle: "Select and input a specific API version",
  352. },
  353. },
  354. Baidu: {
  355. ApiKey: {
  356. Title: "Baidu API Key",
  357. SubTitle: "Use a custom Baidu API Key",
  358. Placeholder: "Baidu API Key",
  359. },
  360. SecretKey: {
  361. Title: "Baidu Secret Key",
  362. SubTitle: "Use a custom Baidu Secret Key",
  363. Placeholder: "Baidu Secret Key",
  364. },
  365. Endpoint: {
  366. Title: "Endpoint Address",
  367. SubTitle: "not supported, configure in .env",
  368. },
  369. },
  370. Tencent: {
  371. ApiKey: {
  372. Title: "Tencent API Key",
  373. SubTitle: "Use a custom Tencent API Key",
  374. Placeholder: "Tencent API Key",
  375. },
  376. SecretKey: {
  377. Title: "Tencent Secret Key",
  378. SubTitle: "Use a custom Tencent Secret Key",
  379. Placeholder: "Tencent Secret Key",
  380. },
  381. Endpoint: {
  382. Title: "Endpoint Address",
  383. SubTitle: "not supported, configure in .env",
  384. },
  385. },
  386. ByteDance: {
  387. ApiKey: {
  388. Title: "ByteDance API Key",
  389. SubTitle: "Use a custom ByteDance API Key",
  390. Placeholder: "ByteDance API Key",
  391. },
  392. Endpoint: {
  393. Title: "Endpoint Address",
  394. SubTitle: "Example: ",
  395. },
  396. },
  397. Alibaba: {
  398. ApiKey: {
  399. Title: "Alibaba API Key",
  400. SubTitle: "Use a custom Alibaba Cloud API Key",
  401. Placeholder: "Alibaba Cloud API Key",
  402. },
  403. Endpoint: {
  404. Title: "Endpoint Address",
  405. SubTitle: "Example: ",
  406. },
  407. },
  408. Moonshot: {
  409. ApiKey: {
  410. Title: "Moonshot API Key",
  411. SubTitle: "Use a custom Moonshot API Key",
  412. Placeholder: "Moonshot API Key",
  413. },
  414. Endpoint: {
  415. Title: "Endpoint Address",
  416. SubTitle: "Example: ",
  417. },
  418. },
  419. DeepSeek: {
  420. ApiKey: {
  421. Title: "DeepSeek API Key",
  422. SubTitle: "Use a custom DeepSeek API Key",
  423. Placeholder: "DeepSeek API Key",
  424. },
  425. Endpoint: {
  426. Title: "Endpoint Address",
  427. SubTitle: "Example: ",
  428. },
  429. },
  430. XAI: {
  431. ApiKey: {
  432. Title: "XAI API Key",
  433. SubTitle: "Use a custom XAI API Key",
  434. Placeholder: "XAI API Key",
  435. },
  436. Endpoint: {
  437. Title: "Endpoint Address",
  438. SubTitle: "Example: ",
  439. },
  440. },
  441. ChatGLM: {
  442. ApiKey: {
  443. Title: "ChatGLM API Key",
  444. SubTitle: "Use a custom ChatGLM API Key",
  445. Placeholder: "ChatGLM API Key",
  446. },
  447. Endpoint: {
  448. Title: "Endpoint Address",
  449. SubTitle: "Example: ",
  450. },
  451. },
  452. SiliconFlow: {
  453. ApiKey: {
  454. Title: "SiliconFlow API Key",
  455. SubTitle: "Use a custom SiliconFlow API Key",
  456. Placeholder: "SiliconFlow API Key",
  457. },
  458. Endpoint: {
  459. Title: "Endpoint Address",
  460. SubTitle: "Example: ",
  461. },
  462. },
  463. Stability: {
  464. ApiKey: {
  465. Title: "Stability API Key",
  466. SubTitle: "Use a custom Stability API Key",
  467. Placeholder: "Stability API Key",
  468. },
  469. Endpoint: {
  470. Title: "Endpoint Address",
  471. SubTitle: "Example: ",
  472. },
  473. },
  474. Iflytek: {
  475. ApiKey: {
  476. Title: "Iflytek API Key",
  477. SubTitle: "Use a Iflytek API Key",
  478. Placeholder: "Iflytek API Key",
  479. },
  480. ApiSecret: {
  481. Title: "Iflytek API Secret",
  482. SubTitle: "Use a Iflytek API Secret",
  483. Placeholder: "Iflytek API Secret",
  484. },
  485. Endpoint: {
  486. Title: "Endpoint Address",
  487. SubTitle: "Example: ",
  488. },
  489. },
  490. CustomModel: {
  491. Title: "Custom Models",
  492. SubTitle: "Custom model options, seperated by comma",
  493. },
  494. Google: {
  495. ApiKey: {
  496. Title: "API Key",
  497. SubTitle: "Obtain your API Key from Google AI",
  498. Placeholder: "Google AI API Key",
  499. },
  500. Endpoint: {
  501. Title: "Endpoint Address",
  502. SubTitle: "Example: ",
  503. },
  504. ApiVersion: {
  505. Title: "API Version (specific to gemini-pro)",
  506. SubTitle: "Select a specific API version",
  507. },
  508. GoogleSafetySettings: {
  509. Title: "Google Safety Settings",
  510. SubTitle: "Select a safety filtering level",
  511. },
  512. },
  513. AI302: {
  514. ApiKey: {
  515. Title: "302.AI API Key",
  516. SubTitle: "Use a custom 302.AI API Key",
  517. Placeholder: "302.AI API Key",
  518. },
  519. Endpoint: {
  520. Title: "Endpoint Address",
  521. SubTitle: "Example: ",
  522. },
  523. },
  524. },
  525. Model: "Model",
  526. CompressModel: {
  527. Title: "Summary Model",
  528. SubTitle: "Model used to compress history and generate title",
  529. },
  530. Temperature: {
  531. Title: "Temperature",
  532. SubTitle: "A larger value makes the more random output",
  533. },
  534. TopP: {
  535. Title: "Top P",
  536. SubTitle: "Do not alter this value together with temperature",
  537. },
  538. MaxTokens: {
  539. Title: "Max Tokens",
  540. SubTitle: "Maximum length of input tokens and generated tokens",
  541. },
  542. PresencePenalty: {
  543. Title: "Presence Penalty",
  544. SubTitle:
  545. "A larger value increases the likelihood to talk about new topics",
  546. },
  547. FrequencyPenalty: {
  548. Title: "Frequency Penalty",
  549. SubTitle:
  550. "A larger value decreasing the likelihood to repeat the same line",
  551. },
  552. TTS: {
  553. Enable: {
  554. Title: "Enable TTS",
  555. SubTitle: "Enable text-to-speech service",
  556. },
  557. Autoplay: {
  558. Title: "Enable Autoplay",
  559. SubTitle:
  560. "Automatically generate speech and play, you need to enable the text-to-speech switch first",
  561. },
  562. Model: "Model",
  563. Voice: {
  564. Title: "Voice",
  565. SubTitle: "The voice to use when generating the audio",
  566. },
  567. Speed: {
  568. Title: "Speed",
  569. SubTitle: "The speed of the generated audio",
  570. },
  571. Engine: "TTS Engine",
  572. },
  573. Realtime: {
  574. Enable: {
  575. Title: "Realtime Chat",
  576. SubTitle: "Enable realtime chat feature",
  577. },
  578. Provider: {
  579. Title: "Model Provider",
  580. SubTitle: "Switch between different providers",
  581. },
  582. Model: {
  583. Title: "Model",
  584. SubTitle: "Select a model",
  585. },
  586. ApiKey: {
  587. Title: "API Key",
  588. SubTitle: "API Key",
  589. Placeholder: "API Key",
  590. },
  591. Azure: {
  592. Endpoint: {
  593. Title: "Endpoint",
  594. SubTitle: "Endpoint",
  595. },
  596. Deployment: {
  597. Title: "Deployment Name",
  598. SubTitle: "Deployment Name",
  599. },
  600. },
  601. Temperature: {
  602. Title: "Randomness (temperature)",
  603. SubTitle: "Higher values result in more random responses",
  604. },
  605. },
  606. },
  607. Store: {
  608. DefaultTopic: "New Conversation",
  609. BotHello: "Hello! How can I assist you today?",
  610. Error: "Something went wrong, please try again later.",
  611. Prompt: {
  612. History: (content: string) =>
  613. "This is a summary of the chat history as a recap: " + content,
  614. Topic:
  615. "Please generate a four to five word title summarizing our conversation without any lead-in, punctuation, quotation marks, periods, symbols, bold text, or additional text. Remove enclosing quotation marks.",
  616. Summarize:
  617. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  618. },
  619. },
  620. Copy: {
  621. Success: "Copied to clipboard",
  622. Failed: "Copy failed, please grant permission to access clipboard",
  623. },
  624. Download: {
  625. Success: "Content downloaded to your directory.",
  626. Failed: "Download failed.",
  627. },
  628. Context: {
  629. Toast: (x: any) => `With ${x} contextual prompts`,
  630. Edit: "Current Chat Settings",
  631. Add: "Add a Prompt",
  632. Clear: "Context Cleared",
  633. Revert: "Revert",
  634. },
  635. Discovery: {
  636. Name: "Discovery",
  637. },
  638. Mcp: {
  639. Name: "MCP",
  640. },
  641. FineTuned: {
  642. Sysmessage: "You are an assistant that",
  643. },
  644. SearchChat: {
  645. Name: "Search",
  646. Page: {
  647. Title: "Search Chat History",
  648. Search: "Enter search query to search chat history",
  649. NoResult: "No results found",
  650. NoData: "No data",
  651. Loading: "Loading...",
  652. SubTitle: (count: number) => `Found ${count} results`,
  653. },
  654. Item: {
  655. View: "View",
  656. },
  657. },
  658. Plugin: {
  659. Name: "Plugin",
  660. Page: {
  661. Title: "Plugins",
  662. SubTitle: (count: number) => `${count} plugins`,
  663. Search: "Search Plugin",
  664. Create: "Create",
  665. Find: "You can find awesome plugins on github: ",
  666. },
  667. Item: {
  668. Info: (count: number) => `${count} method`,
  669. View: "View",
  670. Edit: "Edit",
  671. Delete: "Delete",
  672. DeleteConfirm: "Confirm to delete?",
  673. },
  674. Auth: {
  675. None: "None",
  676. Basic: "Basic",
  677. Bearer: "Bearer",
  678. Custom: "Custom",
  679. CustomHeader: "Parameter Name",
  680. Token: "Token",
  681. Proxy: "Using Proxy",
  682. ProxyDescription: "Using proxies to solve CORS error",
  683. Location: "Location",
  684. LocationHeader: "Header",
  685. LocationQuery: "Query",
  686. LocationBody: "Body",
  687. },
  688. EditModal: {
  689. Title: (readonly: boolean) =>
  690. `Edit Plugin ${readonly ? "(readonly)" : ""}`,
  691. Download: "Download",
  692. Auth: "Authentication Type",
  693. Content: "OpenAPI Schema",
  694. Load: "Load From URL",
  695. Method: "Method",
  696. Error: "OpenAPI Schema Error",
  697. },
  698. },
  699. Mask: {
  700. Name: "Mask",
  701. Page: {
  702. Title: "Prompt Template",
  703. SubTitle: (count: number) => `${count} prompt templates`,
  704. Search: "Search Templates",
  705. Create: "Create",
  706. },
  707. Item: {
  708. Info: (count: number) => `${count} prompts`,
  709. Chat: "Chat",
  710. View: "View",
  711. Edit: "Edit",
  712. Delete: "Delete",
  713. DeleteConfirm: "Confirm to delete?",
  714. },
  715. EditModal: {
  716. Title: (readonly: boolean) =>
  717. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  718. Download: "Download",
  719. Clone: "Clone",
  720. },
  721. Config: {
  722. Avatar: "Bot Avatar",
  723. Name: "Bot Name",
  724. Sync: {
  725. Title: "Use Global Config",
  726. SubTitle: "Use global config in this chat",
  727. Confirm: "Confirm to override custom config with global config?",
  728. },
  729. HideContext: {
  730. Title: "Hide Context Prompts",
  731. SubTitle: "Do not show in-context prompts in chat",
  732. },
  733. Artifacts: {
  734. Title: "Enable Artifacts",
  735. SubTitle: "Can render HTML page when enable artifacts.",
  736. },
  737. CodeFold: {
  738. Title: "Enable CodeFold",
  739. SubTitle:
  740. "Automatically collapse/expand overly long code blocks when CodeFold is enabled",
  741. },
  742. Share: {
  743. Title: "Share This Mask",
  744. SubTitle: "Generate a link to this mask",
  745. Action: "Copy Link",
  746. },
  747. },
  748. },
  749. NewChat: {
  750. Return: "Return",
  751. Skip: "Just Start",
  752. Title: "Pick a Mask",
  753. SubTitle: "Chat with the Soul behind the Mask",
  754. More: "Find More",
  755. NotShow: "Never Show Again",
  756. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  757. },
  758. UI: {
  759. Confirm: "Confirm",
  760. Cancel: "Cancel",
  761. Close: "Close",
  762. Create: "Create",
  763. Edit: "Edit",
  764. Export: "Export",
  765. Import: "Import",
  766. Sync: "Sync",
  767. Config: "Config",
  768. },
  769. Exporter: {
  770. Description: {
  771. Title: "Only messages after clearing the context will be displayed",
  772. },
  773. Model: "Model",
  774. Messages: "Messages",
  775. Topic: "Topic",
  776. Time: "Time",
  777. },
  778. URLCommand: {
  779. Code: "Detected access code from url, confirm to apply? ",
  780. Settings: "Detected settings from url, confirm to apply?",
  781. },
  782. };
  783. export default en;