en.ts 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  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. Update: {
  203. Version: (x: string) => `Version: ${x}`,
  204. IsLatest: "Latest version",
  205. CheckUpdate: "Check Update",
  206. IsChecking: "Checking update...",
  207. FoundUpdate: (x: string) => `Found new version: ${x}`,
  208. GoToUpdate: "Update",
  209. Success: "Update Successful.",
  210. Failed: "Update Failed.",
  211. },
  212. SendKey: "Send Key",
  213. Theme: "Theme",
  214. TightBorder: "Tight Border",
  215. SendPreviewBubble: {
  216. Title: "Send Preview Bubble",
  217. SubTitle: "Preview markdown in bubble",
  218. },
  219. AutoGenerateTitle: {
  220. Title: "Auto Generate Title",
  221. SubTitle: "Generate a suitable title based on the conversation content",
  222. },
  223. Sync: {
  224. CloudState: "Last Update",
  225. NotSyncYet: "Not sync yet",
  226. Success: "Sync Success",
  227. Fail: "Sync Fail",
  228. Config: {
  229. Modal: {
  230. Title: "Config Sync",
  231. Check: "Check Connection",
  232. },
  233. SyncType: {
  234. Title: "Sync Type",
  235. SubTitle: "Choose your favorite sync service",
  236. },
  237. Proxy: {
  238. Title: "Enable CORS Proxy",
  239. SubTitle: "Enable a proxy to avoid cross-origin restrictions",
  240. },
  241. ProxyUrl: {
  242. Title: "Proxy Endpoint",
  243. SubTitle:
  244. "Only applicable to the built-in CORS proxy for this project",
  245. },
  246. WebDav: {
  247. Endpoint: "WebDAV Endpoint",
  248. UserName: "User Name",
  249. Password: "Password",
  250. },
  251. UpStash: {
  252. Endpoint: "UpStash Redis REST Url",
  253. UserName: "Backup Name",
  254. Password: "UpStash Redis REST Token",
  255. },
  256. },
  257. LocalState: "Local Data",
  258. Overview: (overview: any) => {
  259. return `${overview.chat} chats,${overview.message} messages,${overview.prompt} prompts,${overview.mask} masks`;
  260. },
  261. ImportFailed: "Failed to import from file",
  262. },
  263. Mask: {
  264. Splash: {
  265. Title: "Mask Splash Screen",
  266. SubTitle: "Show a mask splash screen before starting new chat",
  267. },
  268. Builtin: {
  269. Title: "Hide Builtin Masks",
  270. SubTitle: "Hide builtin masks in mask list",
  271. },
  272. },
  273. Prompt: {
  274. Disable: {
  275. Title: "Disable auto-completion",
  276. SubTitle: "Input / to trigger auto-completion",
  277. },
  278. List: "Prompt List",
  279. ListCount: (builtin: number, custom: number) =>
  280. `${builtin} built-in, ${custom} user-defined`,
  281. Edit: "Edit",
  282. Modal: {
  283. Title: "Prompt List",
  284. Add: "Add One",
  285. Search: "Search Prompts",
  286. },
  287. EditModal: {
  288. Title: "Edit Prompt",
  289. },
  290. },
  291. HistoryCount: {
  292. Title: "Attached Messages Count",
  293. SubTitle: "Number of sent messages attached per request",
  294. },
  295. CompressThreshold: {
  296. Title: "History Compression Threshold",
  297. SubTitle:
  298. "Will compress if uncompressed messages length exceeds the value",
  299. },
  300. Usage: {
  301. Title: "Account Balance",
  302. SubTitle(used: any, total: any) {
  303. return `Used this month $${used}, subscription $${total}`;
  304. },
  305. IsChecking: "Checking...",
  306. Check: "Check",
  307. NoAccess: "Enter API Key to check balance",
  308. },
  309. Access: {
  310. SaasStart: {
  311. Title: "Use NextChat AI",
  312. Label: " (Most Cost-Effective Option)",
  313. SubTitle:
  314. "Maintained by NextChat, zero setup needed, unlock OpenAI o1, GPT-4o," +
  315. " Claude-3.5 and more",
  316. ChatNow: "Start Now",
  317. },
  318. AccessCode: {
  319. Title: "Access Code",
  320. SubTitle: "Access control Enabled",
  321. Placeholder: "Enter Code",
  322. },
  323. CustomEndpoint: {
  324. Title: "Custom Endpoint",
  325. SubTitle: "Use custom Azure or OpenAI service",
  326. },
  327. Provider: {
  328. Title: "Model Provider",
  329. SubTitle: "Select Azure or OpenAI",
  330. },
  331. OpenAI: {
  332. ApiKey: {
  333. Title: "OpenAI API Key",
  334. SubTitle: "User custom OpenAI Api Key",
  335. Placeholder: "sk-xxx",
  336. },
  337. Endpoint: {
  338. Title: "OpenAI Endpoint",
  339. SubTitle: "Must start with http(s):// or use /api/openai as default",
  340. },
  341. },
  342. Azure: {
  343. ApiKey: {
  344. Title: "Azure Api Key",
  345. SubTitle: "Check your api key from Azure console",
  346. Placeholder: "Azure Api Key",
  347. },
  348. Endpoint: {
  349. Title: "Azure Endpoint",
  350. SubTitle: "Example: ",
  351. },
  352. ApiVerion: {
  353. Title: "Azure Api Version",
  354. SubTitle: "Check your api version from azure console",
  355. },
  356. },
  357. Anthropic: {
  358. ApiKey: {
  359. Title: "Anthropic API Key",
  360. SubTitle:
  361. "Use a custom Anthropic Key to bypass password access restrictions",
  362. Placeholder: "Anthropic API Key",
  363. },
  364. Endpoint: {
  365. Title: "Endpoint Address",
  366. SubTitle: "Example: ",
  367. },
  368. ApiVerion: {
  369. Title: "API Version (claude api version)",
  370. SubTitle: "Select and input a specific API version",
  371. },
  372. },
  373. Baidu: {
  374. ApiKey: {
  375. Title: "Baidu API Key",
  376. SubTitle: "Use a custom Baidu API Key",
  377. Placeholder: "Baidu API Key",
  378. },
  379. SecretKey: {
  380. Title: "Baidu Secret Key",
  381. SubTitle: "Use a custom Baidu Secret Key",
  382. Placeholder: "Baidu Secret Key",
  383. },
  384. Endpoint: {
  385. Title: "Endpoint Address",
  386. SubTitle: "not supported, configure in .env",
  387. },
  388. },
  389. Tencent: {
  390. ApiKey: {
  391. Title: "Tencent API Key",
  392. SubTitle: "Use a custom Tencent API Key",
  393. Placeholder: "Tencent API Key",
  394. },
  395. SecretKey: {
  396. Title: "Tencent Secret Key",
  397. SubTitle: "Use a custom Tencent Secret Key",
  398. Placeholder: "Tencent Secret Key",
  399. },
  400. Endpoint: {
  401. Title: "Endpoint Address",
  402. SubTitle: "not supported, configure in .env",
  403. },
  404. },
  405. ByteDance: {
  406. ApiKey: {
  407. Title: "ByteDance API Key",
  408. SubTitle: "Use a custom ByteDance API Key",
  409. Placeholder: "ByteDance API Key",
  410. },
  411. Endpoint: {
  412. Title: "Endpoint Address",
  413. SubTitle: "Example: ",
  414. },
  415. },
  416. Alibaba: {
  417. ApiKey: {
  418. Title: "Alibaba API Key",
  419. SubTitle: "Use a custom Alibaba Cloud API Key",
  420. Placeholder: "Alibaba Cloud API Key",
  421. },
  422. Endpoint: {
  423. Title: "Endpoint Address",
  424. SubTitle: "Example: ",
  425. },
  426. },
  427. Moonshot: {
  428. ApiKey: {
  429. Title: "Moonshot API Key",
  430. SubTitle: "Use a custom Moonshot API Key",
  431. Placeholder: "Moonshot API Key",
  432. },
  433. Endpoint: {
  434. Title: "Endpoint Address",
  435. SubTitle: "Example: ",
  436. },
  437. },
  438. DeepSeek: {
  439. ApiKey: {
  440. Title: "DeepSeek API Key",
  441. SubTitle: "Use a custom DeepSeek API Key",
  442. Placeholder: "DeepSeek API Key",
  443. },
  444. Endpoint: {
  445. Title: "Endpoint Address",
  446. SubTitle: "Example: ",
  447. },
  448. },
  449. XAI: {
  450. ApiKey: {
  451. Title: "XAI API Key",
  452. SubTitle: "Use a custom XAI API Key",
  453. Placeholder: "XAI API Key",
  454. },
  455. Endpoint: {
  456. Title: "Endpoint Address",
  457. SubTitle: "Example: ",
  458. },
  459. },
  460. ChatGLM: {
  461. ApiKey: {
  462. Title: "ChatGLM API Key",
  463. SubTitle: "Use a custom ChatGLM API Key",
  464. Placeholder: "ChatGLM API Key",
  465. },
  466. Endpoint: {
  467. Title: "Endpoint Address",
  468. SubTitle: "Example: ",
  469. },
  470. },
  471. SiliconFlow: {
  472. ApiKey: {
  473. Title: "SiliconFlow API Key",
  474. SubTitle: "Use a custom SiliconFlow API Key",
  475. Placeholder: "SiliconFlow API Key",
  476. },
  477. Endpoint: {
  478. Title: "Endpoint Address",
  479. SubTitle: "Example: ",
  480. },
  481. },
  482. Stability: {
  483. ApiKey: {
  484. Title: "Stability API Key",
  485. SubTitle: "Use a custom Stability API Key",
  486. Placeholder: "Stability API Key",
  487. },
  488. Endpoint: {
  489. Title: "Endpoint Address",
  490. SubTitle: "Example: ",
  491. },
  492. },
  493. Iflytek: {
  494. ApiKey: {
  495. Title: "Iflytek API Key",
  496. SubTitle: "Use a Iflytek API Key",
  497. Placeholder: "Iflytek API Key",
  498. },
  499. ApiSecret: {
  500. Title: "Iflytek API Secret",
  501. SubTitle: "Use a Iflytek API Secret",
  502. Placeholder: "Iflytek API Secret",
  503. },
  504. Endpoint: {
  505. Title: "Endpoint Address",
  506. SubTitle: "Example: ",
  507. },
  508. },
  509. CustomModel: {
  510. Title: "Custom Models",
  511. SubTitle: "Custom model options, seperated by comma",
  512. },
  513. Google: {
  514. ApiKey: {
  515. Title: "API Key",
  516. SubTitle: "Obtain your API Key from Google AI",
  517. Placeholder: "Google AI API Key",
  518. },
  519. Endpoint: {
  520. Title: "Endpoint Address",
  521. SubTitle: "Example: ",
  522. },
  523. ApiVersion: {
  524. Title: "API Version (specific to gemini-pro)",
  525. SubTitle: "Select a specific API version",
  526. },
  527. GoogleSafetySettings: {
  528. Title: "Google Safety Settings",
  529. SubTitle: "Select a safety filtering level",
  530. },
  531. },
  532. },
  533. Model: "Model",
  534. CompressModel: {
  535. Title: "Summary Model",
  536. SubTitle: "Model used to compress history and generate title",
  537. },
  538. Temperature: {
  539. Title: "Temperature",
  540. SubTitle: "A larger value makes the more random output",
  541. },
  542. TopP: {
  543. Title: "Top P",
  544. SubTitle: "Do not alter this value together with temperature",
  545. },
  546. MaxTokens: {
  547. Title: "Max Tokens",
  548. SubTitle: "Maximum length of input tokens and generated tokens",
  549. },
  550. PresencePenalty: {
  551. Title: "Presence Penalty",
  552. SubTitle:
  553. "A larger value increases the likelihood to talk about new topics",
  554. },
  555. FrequencyPenalty: {
  556. Title: "Frequency Penalty",
  557. SubTitle:
  558. "A larger value decreasing the likelihood to repeat the same line",
  559. },
  560. TTS: {
  561. Enable: {
  562. Title: "Enable TTS",
  563. SubTitle: "Enable text-to-speech service",
  564. },
  565. Autoplay: {
  566. Title: "Enable Autoplay",
  567. SubTitle:
  568. "Automatically generate speech and play, you need to enable the text-to-speech switch first",
  569. },
  570. Model: "Model",
  571. Voice: {
  572. Title: "Voice",
  573. SubTitle: "The voice to use when generating the audio",
  574. },
  575. Speed: {
  576. Title: "Speed",
  577. SubTitle: "The speed of the generated audio",
  578. },
  579. Engine: "TTS Engine",
  580. },
  581. Realtime: {
  582. Enable: {
  583. Title: "Realtime Chat",
  584. SubTitle: "Enable realtime chat feature",
  585. },
  586. Provider: {
  587. Title: "Model Provider",
  588. SubTitle: "Switch between different providers",
  589. },
  590. Model: {
  591. Title: "Model",
  592. SubTitle: "Select a model",
  593. },
  594. ApiKey: {
  595. Title: "API Key",
  596. SubTitle: "API Key",
  597. Placeholder: "API Key",
  598. },
  599. Azure: {
  600. Endpoint: {
  601. Title: "Endpoint",
  602. SubTitle: "Endpoint",
  603. },
  604. Deployment: {
  605. Title: "Deployment Name",
  606. SubTitle: "Deployment Name",
  607. },
  608. },
  609. Temperature: {
  610. Title: "Randomness (temperature)",
  611. SubTitle: "Higher values result in more random responses",
  612. },
  613. },
  614. },
  615. Store: {
  616. DefaultTopic: "New Conversation",
  617. BotHello: "Hello! How can I assist you today?",
  618. Error: "Something went wrong, please try again later.",
  619. Prompt: {
  620. History: (content: string) =>
  621. "This is a summary of the chat history as a recap: " + content,
  622. Topic:
  623. "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.",
  624. Summarize:
  625. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  626. },
  627. },
  628. Copy: {
  629. Success: "Copied to clipboard",
  630. Failed: "Copy failed, please grant permission to access clipboard",
  631. },
  632. Download: {
  633. Success: "Content downloaded to your directory.",
  634. Failed: "Download failed.",
  635. },
  636. Context: {
  637. Toast: (x: any) => `With ${x} contextual prompts`,
  638. Edit: "Current Chat Settings",
  639. Add: "Add a Prompt",
  640. Clear: "Context Cleared",
  641. Revert: "Revert",
  642. },
  643. Discovery: {
  644. Name: "Discovery",
  645. },
  646. Mcp: {
  647. Name: "MCP",
  648. },
  649. FineTuned: {
  650. Sysmessage: "You are an assistant that",
  651. },
  652. SearchChat: {
  653. Name: "Search",
  654. Page: {
  655. Title: "Search Chat History",
  656. Search: "Enter search query to search chat history",
  657. NoResult: "No results found",
  658. NoData: "No data",
  659. Loading: "Loading...",
  660. SubTitle: (count: number) => `Found ${count} results`,
  661. },
  662. Item: {
  663. View: "View",
  664. },
  665. },
  666. Plugin: {
  667. Name: "Plugin",
  668. Page: {
  669. Title: "Plugins",
  670. SubTitle: (count: number) => `${count} plugins`,
  671. Search: "Search Plugin",
  672. Create: "Create",
  673. Find: "You can find awesome plugins on github: ",
  674. },
  675. Item: {
  676. Info: (count: number) => `${count} method`,
  677. View: "View",
  678. Edit: "Edit",
  679. Delete: "Delete",
  680. DeleteConfirm: "Confirm to delete?",
  681. },
  682. Auth: {
  683. None: "None",
  684. Basic: "Basic",
  685. Bearer: "Bearer",
  686. Custom: "Custom",
  687. CustomHeader: "Parameter Name",
  688. Token: "Token",
  689. Proxy: "Using Proxy",
  690. ProxyDescription: "Using proxies to solve CORS error",
  691. Location: "Location",
  692. LocationHeader: "Header",
  693. LocationQuery: "Query",
  694. LocationBody: "Body",
  695. },
  696. EditModal: {
  697. Title: (readonly: boolean) =>
  698. `Edit Plugin ${readonly ? "(readonly)" : ""}`,
  699. Download: "Download",
  700. Auth: "Authentication Type",
  701. Content: "OpenAPI Schema",
  702. Load: "Load From URL",
  703. Method: "Method",
  704. Error: "OpenAPI Schema Error",
  705. },
  706. },
  707. Mask: {
  708. Name: "Mask",
  709. Page: {
  710. Title: "Prompt Template",
  711. SubTitle: (count: number) => `${count} prompt templates`,
  712. Search: "Search Templates",
  713. Create: "Create",
  714. },
  715. Item: {
  716. Info: (count: number) => `${count} prompts`,
  717. Chat: "Chat",
  718. View: "View",
  719. Edit: "Edit",
  720. Delete: "Delete",
  721. DeleteConfirm: "Confirm to delete?",
  722. },
  723. EditModal: {
  724. Title: (readonly: boolean) =>
  725. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  726. Download: "Download",
  727. Clone: "Clone",
  728. },
  729. Config: {
  730. Avatar: "Bot Avatar",
  731. Name: "Bot Name",
  732. Sync: {
  733. Title: "Use Global Config",
  734. SubTitle: "Use global config in this chat",
  735. Confirm: "Confirm to override custom config with global config?",
  736. },
  737. HideContext: {
  738. Title: "Hide Context Prompts",
  739. SubTitle: "Do not show in-context prompts in chat",
  740. },
  741. Artifacts: {
  742. Title: "Enable Artifacts",
  743. SubTitle: "Can render HTML page when enable artifacts.",
  744. },
  745. CodeFold: {
  746. Title: "Enable CodeFold",
  747. SubTitle:
  748. "Automatically collapse/expand overly long code blocks when CodeFold is enabled",
  749. },
  750. Share: {
  751. Title: "Share This Mask",
  752. SubTitle: "Generate a link to this mask",
  753. Action: "Copy Link",
  754. },
  755. },
  756. },
  757. NewChat: {
  758. Return: "Return",
  759. Skip: "Just Start",
  760. Title: "Pick a Mask",
  761. SubTitle: "Chat with the Soul behind the Mask",
  762. More: "Find More",
  763. NotShow: "Never Show Again",
  764. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  765. },
  766. UI: {
  767. Confirm: "Confirm",
  768. Cancel: "Cancel",
  769. Close: "Close",
  770. Create: "Create",
  771. Edit: "Edit",
  772. Export: "Export",
  773. Import: "Import",
  774. Sync: "Sync",
  775. Config: "Config",
  776. },
  777. Exporter: {
  778. Description: {
  779. Title: "Only messages after clearing the context will be displayed",
  780. },
  781. Model: "Model",
  782. Messages: "Messages",
  783. Topic: "Topic",
  784. Time: "Time",
  785. },
  786. URLCommand: {
  787. Code: "Detected access code from url, confirm to apply? ",
  788. Settings: "Detected settings from url, confirm to apply?",
  789. },
  790. SdPanel: {
  791. Prompt: "Prompt",
  792. NegativePrompt: "Negative Prompt",
  793. PleaseInput: (name: string) => `Please input ${name}`,
  794. AspectRatio: "Aspect Ratio",
  795. ImageStyle: "Image Style",
  796. OutFormat: "Output Format",
  797. AIModel: "AI Model",
  798. ModelVersion: "Model Version",
  799. Submit: "Submit",
  800. ParamIsRequired: (name: string) => `${name} is required`,
  801. Styles: {
  802. D3Model: "3d-model",
  803. AnalogFilm: "analog-film",
  804. Anime: "anime",
  805. Cinematic: "cinematic",
  806. ComicBook: "comic-book",
  807. DigitalArt: "digital-art",
  808. Enhance: "enhance",
  809. FantasyArt: "fantasy-art",
  810. Isometric: "isometric",
  811. LineArt: "line-art",
  812. LowPoly: "low-poly",
  813. ModelingCompound: "modeling-compound",
  814. NeonPunk: "neon-punk",
  815. Origami: "origami",
  816. Photographic: "photographic",
  817. PixelArt: "pixel-art",
  818. TileTexture: "tile-texture",
  819. },
  820. },
  821. Sd: {
  822. SubTitle: (count: number) => `${count} images`,
  823. Actions: {
  824. Params: "See Params",
  825. Copy: "Copy Prompt",
  826. Delete: "Delete",
  827. Retry: "Retry",
  828. ReturnHome: "Return Home",
  829. History: "History",
  830. },
  831. EmptyRecord: "No images yet",
  832. Status: {
  833. Name: "Status",
  834. Success: "Success",
  835. Error: "Error",
  836. Wait: "Waiting",
  837. Running: "Running",
  838. },
  839. Danger: {
  840. Delete: "Confirm to delete?",
  841. },
  842. GenerateParams: "Generate Params",
  843. Detail: "Detail",
  844. },
  845. };
  846. export default en;