en.ts 17 KB

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