en.ts 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  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 or Google 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. FullScreen: "FullScreen",
  46. Speech: "Play",
  47. StopSpeech: "Stop",
  48. },
  49. Commands: {
  50. new: "Start a new chat",
  51. newm: "Start a new chat with mask",
  52. next: "Next Chat",
  53. prev: "Previous Chat",
  54. clear: "Clear Context",
  55. del: "Delete Chat",
  56. },
  57. InputActions: {
  58. Stop: "Stop",
  59. ToBottom: "To Latest",
  60. Theme: {
  61. auto: "Auto",
  62. light: "Light Theme",
  63. dark: "Dark Theme",
  64. },
  65. Prompt: "Prompts",
  66. Masks: "Masks",
  67. Clear: "Clear Context",
  68. Settings: "Settings",
  69. UploadImage: "Upload Images",
  70. },
  71. Rename: "Rename Chat",
  72. Typing: "Typing…",
  73. Input: (submitKey: string) => {
  74. var inputHints = `${submitKey} to send`;
  75. if (submitKey === String(SubmitKey.Enter)) {
  76. inputHints += ", Shift + Enter to wrap";
  77. }
  78. return inputHints + ", / to search prompts, : to use commands";
  79. },
  80. Send: "Send",
  81. StartSpeak: "Start Speak",
  82. StopSpeak: "Stop Speak",
  83. Config: {
  84. Reset: "Reset to Default",
  85. SaveAs: "Save as Mask",
  86. },
  87. IsContext: "Contextual Prompt",
  88. },
  89. Export: {
  90. Title: "Export Messages",
  91. Copy: "Copy All",
  92. Download: "Download",
  93. MessageFromYou: "Message From You",
  94. MessageFromChatGPT: "Message From ChatGPT",
  95. Share: "Share to ShareGPT",
  96. Format: {
  97. Title: "Export Format",
  98. SubTitle: "Markdown or PNG Image",
  99. },
  100. IncludeContext: {
  101. Title: "Including Context",
  102. SubTitle: "Export context prompts in mask or not",
  103. },
  104. Steps: {
  105. Select: "Select",
  106. Preview: "Preview",
  107. },
  108. Image: {
  109. Toast: "Capturing Image...",
  110. Modal: "Long press or right click to save image",
  111. },
  112. Artifacts: {
  113. Title: "Share Artifacts",
  114. Error: "Share Error",
  115. },
  116. },
  117. Select: {
  118. Search: "Search",
  119. All: "Select All",
  120. Latest: "Select Latest",
  121. Clear: "Clear",
  122. },
  123. Memory: {
  124. Title: "Memory Prompt",
  125. EmptyContent: "Nothing yet.",
  126. Send: "Send Memory",
  127. Copy: "Copy Memory",
  128. Reset: "Reset Session",
  129. ResetConfirm:
  130. "Resetting will clear the current conversation history and historical memory. Are you sure you want to reset?",
  131. },
  132. Home: {
  133. NewChat: "New Chat",
  134. DeleteChat: "Confirm to delete the selected conversation?",
  135. DeleteToast: "Chat Deleted",
  136. Revert: "Revert",
  137. },
  138. Settings: {
  139. Title: "Settings",
  140. SubTitle: "All Settings",
  141. ShowPassword: "ShowPassword",
  142. Danger: {
  143. Reset: {
  144. Title: "Reset All Settings",
  145. SubTitle: "Reset all setting items to default",
  146. Action: "Reset",
  147. Confirm: "Confirm to reset all settings to default?",
  148. },
  149. Clear: {
  150. Title: "Clear All Data",
  151. SubTitle: "Clear all messages and settings",
  152. Action: "Clear",
  153. Confirm: "Confirm to clear all messages and settings?",
  154. },
  155. },
  156. Lang: {
  157. Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
  158. All: "All Languages",
  159. },
  160. Avatar: "Avatar",
  161. FontSize: {
  162. Title: "Font Size",
  163. SubTitle: "Adjust font size of chat content",
  164. },
  165. FontFamily: {
  166. Title: "Chat Font Family",
  167. SubTitle:
  168. "Font Family of the chat content, leave empty to apply global default font",
  169. Placeholder: "Font Family Name",
  170. },
  171. InjectSystemPrompts: {
  172. Title: "Inject System Prompts",
  173. SubTitle: "Inject a global system prompt for every request",
  174. },
  175. InputTemplate: {
  176. Title: "Input Template",
  177. SubTitle: "Newest message will be filled to this template",
  178. },
  179. Update: {
  180. Version: (x: string) => `Version: ${x}`,
  181. IsLatest: "Latest version",
  182. CheckUpdate: "Check Update",
  183. IsChecking: "Checking update...",
  184. FoundUpdate: (x: string) => `Found new version: ${x}`,
  185. GoToUpdate: "Update",
  186. },
  187. SendKey: "Send Key",
  188. Theme: "Theme",
  189. TightBorder: "Tight Border",
  190. SendPreviewBubble: {
  191. Title: "Send Preview Bubble",
  192. SubTitle: "Preview markdown in bubble",
  193. },
  194. AutoGenerateTitle: {
  195. Title: "Auto Generate Title",
  196. SubTitle: "Generate a suitable title based on the conversation content",
  197. },
  198. Sync: {
  199. CloudState: "Last Update",
  200. NotSyncYet: "Not sync yet",
  201. Success: "Sync Success",
  202. Fail: "Sync Fail",
  203. Config: {
  204. Modal: {
  205. Title: "Config Sync",
  206. Check: "Check Connection",
  207. },
  208. SyncType: {
  209. Title: "Sync Type",
  210. SubTitle: "Choose your favorite sync service",
  211. },
  212. Proxy: {
  213. Title: "Enable CORS Proxy",
  214. SubTitle: "Enable a proxy to avoid cross-origin restrictions",
  215. },
  216. ProxyUrl: {
  217. Title: "Proxy Endpoint",
  218. SubTitle:
  219. "Only applicable to the built-in CORS proxy for this project",
  220. },
  221. WebDav: {
  222. Endpoint: "WebDAV Endpoint",
  223. UserName: "User Name",
  224. Password: "Password",
  225. },
  226. UpStash: {
  227. Endpoint: "UpStash Redis REST Url",
  228. UserName: "Backup Name",
  229. Password: "UpStash Redis REST Token",
  230. },
  231. },
  232. LocalState: "Local Data",
  233. Overview: (overview: any) => {
  234. return `${overview.chat} chats,${overview.message} messages,${overview.prompt} prompts,${overview.mask} masks`;
  235. },
  236. ImportFailed: "Failed to import from file",
  237. },
  238. Mask: {
  239. Splash: {
  240. Title: "Mask Splash Screen",
  241. SubTitle: "Show a mask splash screen before starting new chat",
  242. },
  243. Builtin: {
  244. Title: "Hide Builtin Masks",
  245. SubTitle: "Hide builtin masks in mask list",
  246. },
  247. },
  248. Prompt: {
  249. Disable: {
  250. Title: "Disable auto-completion",
  251. SubTitle: "Input / to trigger auto-completion",
  252. },
  253. List: "Prompt List",
  254. ListCount: (builtin: number, custom: number) =>
  255. `${builtin} built-in, ${custom} user-defined`,
  256. Edit: "Edit",
  257. Modal: {
  258. Title: "Prompt List",
  259. Add: "Add One",
  260. Search: "Search Prompts",
  261. },
  262. EditModal: {
  263. Title: "Edit Prompt",
  264. },
  265. },
  266. HistoryCount: {
  267. Title: "Attached Messages Count",
  268. SubTitle: "Number of sent messages attached per request",
  269. },
  270. CompressThreshold: {
  271. Title: "History Compression Threshold",
  272. SubTitle:
  273. "Will compress if uncompressed messages length exceeds the value",
  274. },
  275. Usage: {
  276. Title: "Account Balance",
  277. SubTitle(used: any, total: any) {
  278. return `Used this month $${used}, subscription $${total}`;
  279. },
  280. IsChecking: "Checking...",
  281. Check: "Check",
  282. NoAccess: "Enter API Key to check balance",
  283. },
  284. Access: {
  285. AccessCode: {
  286. Title: "Access Code",
  287. SubTitle: "Access control Enabled",
  288. Placeholder: "Enter Code",
  289. },
  290. CustomEndpoint: {
  291. Title: "Custom Endpoint",
  292. SubTitle: "Use custom Azure or OpenAI service",
  293. },
  294. Provider: {
  295. Title: "Model Provider",
  296. SubTitle: "Select Azure or OpenAI",
  297. },
  298. OpenAI: {
  299. ApiKey: {
  300. Title: "OpenAI API Key",
  301. SubTitle: "User custom OpenAI Api Key",
  302. Placeholder: "sk-xxx",
  303. },
  304. Endpoint: {
  305. Title: "OpenAI Endpoint",
  306. SubTitle: "Must start with http(s):// or use /api/openai as default",
  307. },
  308. },
  309. Azure: {
  310. ApiKey: {
  311. Title: "Azure Api Key",
  312. SubTitle: "Check your api key from Azure console",
  313. Placeholder: "Azure Api Key",
  314. },
  315. Endpoint: {
  316. Title: "Azure Endpoint",
  317. SubTitle: "Example: ",
  318. },
  319. ApiVerion: {
  320. Title: "Azure Api Version",
  321. SubTitle: "Check your api version from azure console",
  322. },
  323. },
  324. Anthropic: {
  325. ApiKey: {
  326. Title: "Anthropic API Key",
  327. SubTitle:
  328. "Use a custom Anthropic Key to bypass password access restrictions",
  329. Placeholder: "Anthropic API Key",
  330. },
  331. Endpoint: {
  332. Title: "Endpoint Address",
  333. SubTitle: "Example: ",
  334. },
  335. ApiVerion: {
  336. Title: "API Version (claude api version)",
  337. SubTitle: "Select and input a specific API version",
  338. },
  339. },
  340. Baidu: {
  341. ApiKey: {
  342. Title: "Baidu API Key",
  343. SubTitle: "Use a custom Baidu API Key",
  344. Placeholder: "Baidu API Key",
  345. },
  346. SecretKey: {
  347. Title: "Baidu Secret Key",
  348. SubTitle: "Use a custom Baidu Secret Key",
  349. Placeholder: "Baidu Secret Key",
  350. },
  351. Endpoint: {
  352. Title: "Endpoint Address",
  353. SubTitle: "not supported, configure in .env",
  354. },
  355. },
  356. Tencent: {
  357. ApiKey: {
  358. Title: "Tencent API Key",
  359. SubTitle: "Use a custom Tencent API Key",
  360. Placeholder: "Tencent API Key",
  361. },
  362. SecretKey: {
  363. Title: "Tencent Secret Key",
  364. SubTitle: "Use a custom Tencent Secret Key",
  365. Placeholder: "Tencent Secret Key",
  366. },
  367. Endpoint: {
  368. Title: "Endpoint Address",
  369. SubTitle: "not supported, configure in .env",
  370. },
  371. },
  372. ByteDance: {
  373. ApiKey: {
  374. Title: "ByteDance API Key",
  375. SubTitle: "Use a custom ByteDance API Key",
  376. Placeholder: "ByteDance API Key",
  377. },
  378. Endpoint: {
  379. Title: "Endpoint Address",
  380. SubTitle: "Example: ",
  381. },
  382. },
  383. Alibaba: {
  384. ApiKey: {
  385. Title: "Alibaba API Key",
  386. SubTitle: "Use a custom Alibaba Cloud API Key",
  387. Placeholder: "Alibaba Cloud API Key",
  388. },
  389. Endpoint: {
  390. Title: "Endpoint Address",
  391. SubTitle: "Example: ",
  392. },
  393. },
  394. Moonshot: {
  395. ApiKey: {
  396. Title: "Moonshot API Key",
  397. SubTitle: "Use a custom Moonshot API Key",
  398. Placeholder: "Moonshot API Key",
  399. },
  400. Endpoint: {
  401. Title: "Endpoint Address",
  402. SubTitle: "Example: ",
  403. },
  404. },
  405. Stability: {
  406. ApiKey: {
  407. Title: "Stability API Key",
  408. SubTitle: "Use a custom Stability API Key",
  409. Placeholder: "Stability API Key",
  410. },
  411. Endpoint: {
  412. Title: "Endpoint Address",
  413. SubTitle: "Example: ",
  414. },
  415. },
  416. Iflytek: {
  417. ApiKey: {
  418. Title: "Iflytek API Key",
  419. SubTitle: "Use a Iflytek API Key",
  420. Placeholder: "Iflytek API Key",
  421. },
  422. ApiSecret: {
  423. Title: "Iflytek API Secret",
  424. SubTitle: "Use a Iflytek API Secret",
  425. Placeholder: "Iflytek API Secret",
  426. },
  427. Endpoint: {
  428. Title: "Endpoint Address",
  429. SubTitle: "Example: ",
  430. },
  431. },
  432. CustomModel: {
  433. Title: "Custom Models",
  434. SubTitle: "Custom model options, seperated by comma",
  435. },
  436. Google: {
  437. ApiKey: {
  438. Title: "API Key",
  439. SubTitle: "Obtain your API Key from Google AI",
  440. Placeholder: "Enter your Google AI Studio API Key",
  441. },
  442. Endpoint: {
  443. Title: "Endpoint Address",
  444. SubTitle: "Example: ",
  445. },
  446. ApiVersion: {
  447. Title: "API Version (specific to gemini-pro)",
  448. SubTitle: "Select a specific API version",
  449. },
  450. GoogleSafetySettings: {
  451. Title: "Google Safety Settings",
  452. SubTitle: "Select a safety filtering level",
  453. },
  454. },
  455. },
  456. Model: "Model",
  457. Temperature: {
  458. Title: "Temperature",
  459. SubTitle: "A larger value makes the more random output",
  460. },
  461. TopP: {
  462. Title: "Top P",
  463. SubTitle: "Do not alter this value together with temperature",
  464. },
  465. MaxTokens: {
  466. Title: "Max Tokens",
  467. SubTitle: "Maximum length of input tokens and generated tokens",
  468. },
  469. PresencePenalty: {
  470. Title: "Presence Penalty",
  471. SubTitle:
  472. "A larger value increases the likelihood to talk about new topics",
  473. },
  474. FrequencyPenalty: {
  475. Title: "Frequency Penalty",
  476. SubTitle:
  477. "A larger value decreasing the likelihood to repeat the same line",
  478. },
  479. TTS: {
  480. Enable: {
  481. Title: "Enable TTS",
  482. SubTitle: "Enable text-to-speech service",
  483. },
  484. Autoplay: {
  485. Title: "Enable Autoplay",
  486. SubTitle:
  487. "Automatically generate speech and play, you need to enable the text-to-speech switch first",
  488. },
  489. Model: "Model",
  490. Voice: {
  491. Title: "Voice",
  492. SubTitle: "The voice to use when generating the audio",
  493. },
  494. Speed: {
  495. Title: "Speed",
  496. SubTitle: "The speed of the generated audio",
  497. },
  498. Engine: "TTS Engine",
  499. },
  500. STT: {
  501. Enable: {
  502. Title: "Enable STT",
  503. SubTitle: "Enable Speech-to-Text",
  504. },
  505. Engine: {
  506. Title: "STT Engine",
  507. SubTitle: "Text-to-Speech Engine",
  508. },
  509. },
  510. },
  511. Store: {
  512. DefaultTopic: "New Conversation",
  513. BotHello: "Hello! How can I assist you today?",
  514. Error: "Something went wrong, please try again later.",
  515. Prompt: {
  516. History: (content: string) =>
  517. "This is a summary of the chat history as a recap: " + content,
  518. Topic:
  519. "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.",
  520. Summarize:
  521. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  522. },
  523. },
  524. Copy: {
  525. Success: "Copied to clipboard",
  526. Failed: "Copy failed, please grant permission to access clipboard",
  527. },
  528. Download: {
  529. Success: "Content downloaded to your directory.",
  530. Failed: "Download failed.",
  531. },
  532. Context: {
  533. Toast: (x: any) => `With ${x} contextual prompts`,
  534. Edit: "Current Chat Settings",
  535. Add: "Add a Prompt",
  536. Clear: "Context Cleared",
  537. Revert: "Revert",
  538. },
  539. Plugin: {
  540. Name: "Plugin",
  541. Artifacts: "Artifacts",
  542. },
  543. Discovery: {
  544. Name: "Discovery",
  545. },
  546. FineTuned: {
  547. Sysmessage: "You are an assistant that",
  548. },
  549. SearchChat: {
  550. Name: "Search",
  551. Page: {
  552. Title: "Search Chat History",
  553. Search: "Enter search query to search chat history",
  554. NoResult: "No results found",
  555. NoData: "No data",
  556. Loading: "Loading...",
  557. SubTitle: (count: number) => `Found ${count} results`,
  558. },
  559. Item: {
  560. View: "View",
  561. },
  562. },
  563. Mask: {
  564. Name: "Mask",
  565. Page: {
  566. Title: "Prompt Template",
  567. SubTitle: (count: number) => `${count} prompt templates`,
  568. Search: "Search Templates",
  569. Create: "Create",
  570. },
  571. Item: {
  572. Info: (count: number) => `${count} prompts`,
  573. Chat: "Chat",
  574. View: "View",
  575. Edit: "Edit",
  576. Delete: "Delete",
  577. DeleteConfirm: "Confirm to delete?",
  578. },
  579. EditModal: {
  580. Title: (readonly: boolean) =>
  581. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  582. Download: "Download",
  583. Clone: "Clone",
  584. },
  585. Config: {
  586. Avatar: "Bot Avatar",
  587. Name: "Bot Name",
  588. Sync: {
  589. Title: "Use Global Config",
  590. SubTitle: "Use global config in this chat",
  591. Confirm: "Confirm to override custom config with global config?",
  592. },
  593. HideContext: {
  594. Title: "Hide Context Prompts",
  595. SubTitle: "Do not show in-context prompts in chat",
  596. },
  597. Share: {
  598. Title: "Share This Mask",
  599. SubTitle: "Generate a link to this mask",
  600. Action: "Copy Link",
  601. },
  602. },
  603. },
  604. NewChat: {
  605. Return: "Return",
  606. Skip: "Just Start",
  607. Title: "Pick a Mask",
  608. SubTitle: "Chat with the Soul behind the Mask",
  609. More: "Find More",
  610. NotShow: "Never Show Again",
  611. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  612. },
  613. UI: {
  614. Confirm: "Confirm",
  615. Cancel: "Cancel",
  616. Close: "Close",
  617. Create: "Create",
  618. Edit: "Edit",
  619. Export: "Export",
  620. Import: "Import",
  621. Sync: "Sync",
  622. Config: "Config",
  623. },
  624. Exporter: {
  625. Description: {
  626. Title: "Only messages after clearing the context will be displayed",
  627. },
  628. Model: "Model",
  629. Messages: "Messages",
  630. Topic: "Topic",
  631. Time: "Time",
  632. },
  633. URLCommand: {
  634. Code: "Detected access code from url, confirm to apply? ",
  635. Settings: "Detected settings from url, confirm to apply?",
  636. },
  637. SdPanel: {
  638. Prompt: "Prompt",
  639. NegativePrompt: "Negative Prompt",
  640. PleaseInput: (name: string) => `Please input ${name}`,
  641. AspectRatio: "Aspect Ratio",
  642. ImageStyle: "Image Style",
  643. OutFormat: "Output Format",
  644. AIModel: "AI Model",
  645. ModelVersion: "Model Version",
  646. Submit: "Submit",
  647. ParamIsRequired: (name: string) => `${name} is required`,
  648. Styles: {
  649. D3Model: "3d-model",
  650. AnalogFilm: "analog-film",
  651. Anime: "anime",
  652. Cinematic: "cinematic",
  653. ComicBook: "comic-book",
  654. DigitalArt: "digital-art",
  655. Enhance: "enhance",
  656. FantasyArt: "fantasy-art",
  657. Isometric: "isometric",
  658. LineArt: "line-art",
  659. LowPoly: "low-poly",
  660. ModelingCompound: "modeling-compound",
  661. NeonPunk: "neon-punk",
  662. Origami: "origami",
  663. Photographic: "photographic",
  664. PixelArt: "pixel-art",
  665. TileTexture: "tile-texture",
  666. },
  667. },
  668. Sd: {
  669. SubTitle: (count: number) => `${count} images`,
  670. Actions: {
  671. Params: "See Params",
  672. Copy: "Copy Prompt",
  673. Delete: "Delete",
  674. Retry: "Retry",
  675. ReturnHome: "Return Home",
  676. History: "History",
  677. },
  678. EmptyRecord: "No images yet",
  679. Status: {
  680. Name: "Status",
  681. Success: "Success",
  682. Error: "Error",
  683. Wait: "Waiting",
  684. Running: "Running",
  685. },
  686. Danger: {
  687. Delete: "Confirm to delete?",
  688. },
  689. GenerateParams: "Generate Params",
  690. Detail: "Detail",
  691. },
  692. };
  693. export default en;