en.ts 18 KB

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