en.ts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  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 starts 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. CustomModel: {
  309. Title: "Custom Models",
  310. SubTitle: "Custom model options, seperated by comma",
  311. },
  312. Google: {
  313. ApiKey: {
  314. Title: "API Key",
  315. SubTitle: "Obtain your API Key from Google AI",
  316. Placeholder: "Enter your Google AI Studio API Key",
  317. },
  318. Endpoint: {
  319. Title: "Endpoint Address",
  320. SubTitle: "Example:",
  321. },
  322. ApiVersion: {
  323. Title: "API Version (specific to gemini-pro)",
  324. SubTitle: "Select a specific API version",
  325. },
  326. },
  327. },
  328. Model: "Model",
  329. Temperature: {
  330. Title: "Temperature",
  331. SubTitle: "A larger value makes the more random output",
  332. },
  333. TopP: {
  334. Title: "Top P",
  335. SubTitle: "Do not alter this value together with temperature",
  336. },
  337. MaxTokens: {
  338. Title: "Max Tokens",
  339. SubTitle: "Maximum length of input tokens and generated tokens",
  340. },
  341. PresencePenalty: {
  342. Title: "Presence Penalty",
  343. SubTitle:
  344. "A larger value increases the likelihood to talk about new topics",
  345. },
  346. FrequencyPenalty: {
  347. Title: "Frequency Penalty",
  348. SubTitle:
  349. "A larger value decreasing the likelihood to repeat the same line",
  350. },
  351. },
  352. Store: {
  353. DefaultTopic: "New Conversation",
  354. BotHello: "Hello! How can I assist you today?",
  355. Error: "Something went wrong, please try again later.",
  356. Prompt: {
  357. History: (content: string) =>
  358. "This is a summary of the chat history as a recap: " + content,
  359. Topic:
  360. "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.",
  361. Summarize:
  362. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  363. },
  364. },
  365. Copy: {
  366. Success: "Copied to clipboard",
  367. Failed: "Copy failed, please grant permission to access clipboard",
  368. },
  369. Download: {
  370. Success: "Content downloaded to your directory.",
  371. Failed: "Download failed.",
  372. },
  373. Context: {
  374. Toast: (x: any) => `With ${x} contextual prompts`,
  375. Edit: "Current Chat Settings",
  376. Add: "Add a Prompt",
  377. Clear: "Context Cleared",
  378. Revert: "Revert",
  379. },
  380. Plugin: {
  381. Name: "Plugin",
  382. },
  383. FineTuned: {
  384. Sysmessage: "You are an assistant that",
  385. },
  386. Mask: {
  387. Name: "Mask",
  388. Page: {
  389. Title: "Prompt Template",
  390. SubTitle: (count: number) => `${count} prompt templates`,
  391. Search: "Search Templates",
  392. Create: "Create",
  393. },
  394. Item: {
  395. Info: (count: number) => `${count} prompts`,
  396. Chat: "Chat",
  397. View: "View",
  398. Edit: "Edit",
  399. Delete: "Delete",
  400. DeleteConfirm: "Confirm to delete?",
  401. },
  402. EditModal: {
  403. Title: (readonly: boolean) =>
  404. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  405. Download: "Download",
  406. Clone: "Clone",
  407. },
  408. Config: {
  409. Avatar: "Bot Avatar",
  410. Name: "Bot Name",
  411. Sync: {
  412. Title: "Use Global Config",
  413. SubTitle: "Use global config in this chat",
  414. Confirm: "Confirm to override custom config with global config?",
  415. },
  416. HideContext: {
  417. Title: "Hide Context Prompts",
  418. SubTitle: "Do not show in-context prompts in chat",
  419. },
  420. Share: {
  421. Title: "Share This Mask",
  422. SubTitle: "Generate a link to this mask",
  423. Action: "Copy Link",
  424. },
  425. },
  426. },
  427. NewChat: {
  428. Return: "Return",
  429. Skip: "Just Start",
  430. Title: "Pick a Mask",
  431. SubTitle: "Chat with the Soul behind the Mask",
  432. More: "Find More",
  433. NotShow: "Never Show Again",
  434. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  435. },
  436. UI: {
  437. Confirm: "Confirm",
  438. Cancel: "Cancel",
  439. Close: "Close",
  440. Create: "Create",
  441. Edit: "Edit",
  442. Export: "Export",
  443. Import: "Import",
  444. Sync: "Sync",
  445. Config: "Config",
  446. },
  447. Exporter: {
  448. Description: {
  449. Title: "Only messages after clearing the context will be displayed",
  450. },
  451. Model: "Model",
  452. Messages: "Messages",
  453. Topic: "Topic",
  454. Time: "Time",
  455. },
  456. URLCommand: {
  457. Code: "Detected access code from url, confirm to apply? ",
  458. Settings: "Detected settings from url, confirm to apply?",
  459. },
  460. };
  461. export default en;