en.ts 18 KB

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