en.ts 16 KB

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