en.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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. Input: "access code",
  17. Confirm: "Confirm",
  18. Later: "Later",
  19. },
  20. ChatItem: {
  21. ChatItemCount: (count: number) => `${count} messages`,
  22. },
  23. Chat: {
  24. SubTitle: (count: number) => `${count} messages`,
  25. EditMessage: {
  26. Title: "Edit All Messages",
  27. Topic: {
  28. Title: "Topic",
  29. SubTitle: "Change the current topic",
  30. },
  31. },
  32. Actions: {
  33. ChatList: "Go To Chat List",
  34. CompressedHistory: "Compressed History Memory Prompt",
  35. Export: "Export All Messages as Markdown",
  36. Copy: "Copy",
  37. Stop: "Stop",
  38. Retry: "Retry",
  39. Pin: "Pin",
  40. PinToastContent: "Pinned 1 messages to contextual prompts",
  41. PinToastAction: "View",
  42. Delete: "Delete",
  43. Edit: "Edit",
  44. },
  45. Commands: {
  46. new: "Start a new chat",
  47. newm: "Start a new chat with mask",
  48. next: "Next Chat",
  49. prev: "Previous Chat",
  50. clear: "Clear Context",
  51. del: "Delete Chat",
  52. },
  53. InputActions: {
  54. Stop: "Stop",
  55. ToBottom: "To Latest",
  56. Theme: {
  57. auto: "Auto",
  58. light: "Light Theme",
  59. dark: "Dark Theme",
  60. },
  61. Prompt: "Prompts",
  62. Masks: "Masks",
  63. Clear: "Clear Context",
  64. Settings: "Settings",
  65. },
  66. Rename: "Rename Chat",
  67. Typing: "Typing…",
  68. Input: (submitKey: string) => {
  69. var inputHints = `${submitKey} to send`;
  70. if (submitKey === String(SubmitKey.Enter)) {
  71. inputHints += ", Shift + Enter to wrap";
  72. }
  73. return inputHints + ", / to search prompts, : to use commands";
  74. },
  75. Send: "Send",
  76. Config: {
  77. Reset: "Reset to Default",
  78. SaveAs: "Save as Mask",
  79. },
  80. IsContext: "Contextual Prompt",
  81. },
  82. Export: {
  83. Title: "Export Messages",
  84. Copy: "Copy All",
  85. Download: "Download",
  86. MessageFromYou: "Message From You",
  87. MessageFromChatGPT: "Message From ChatGPT",
  88. Share: "Share to ShareGPT",
  89. Format: {
  90. Title: "Export Format",
  91. SubTitle: "Markdown or PNG Image",
  92. },
  93. IncludeContext: {
  94. Title: "Including Context",
  95. SubTitle: "Export context prompts in mask or not",
  96. },
  97. Steps: {
  98. Select: "Select",
  99. Preview: "Preview",
  100. },
  101. Image: {
  102. Toast: "Capturing Image...",
  103. Modal: "Long press or right click to save image",
  104. },
  105. },
  106. Select: {
  107. Search: "Search",
  108. All: "Select All",
  109. Latest: "Select Latest",
  110. Clear: "Clear",
  111. },
  112. Memory: {
  113. Title: "Memory Prompt",
  114. EmptyContent: "Nothing yet.",
  115. Send: "Send Memory",
  116. Copy: "Copy Memory",
  117. Reset: "Reset Session",
  118. ResetConfirm:
  119. "Resetting will clear the current conversation history and historical memory. Are you sure you want to reset?",
  120. },
  121. Home: {
  122. NewChat: "New Chat",
  123. DeleteChat: "Confirm to delete the selected conversation?",
  124. DeleteToast: "Chat Deleted",
  125. Revert: "Revert",
  126. },
  127. Settings: {
  128. Title: "Settings",
  129. SubTitle: "All Settings",
  130. Danger: {
  131. Reset: {
  132. Title: "Reset All Settings",
  133. SubTitle: "Reset all setting items to default",
  134. Action: "Reset",
  135. Confirm: "Confirm to reset all settings to default?",
  136. },
  137. Clear: {
  138. Title: "Clear All Data",
  139. SubTitle: "Clear all messages and settings",
  140. Action: "Clear",
  141. Confirm: "Confirm to clear all messages and settings?",
  142. },
  143. },
  144. Lang: {
  145. Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
  146. All: "All Languages",
  147. },
  148. Avatar: "Avatar",
  149. FontSize: {
  150. Title: "Font Size",
  151. SubTitle: "Adjust font size of chat content",
  152. },
  153. InjectSystemPrompts: {
  154. Title: "Inject System Prompts",
  155. SubTitle: "Inject a global system prompt for every request",
  156. },
  157. InputTemplate: {
  158. Title: "Input Template",
  159. SubTitle: "Newest message will be filled to this template",
  160. },
  161. Update: {
  162. Version: (x: string) => `Version: ${x}`,
  163. IsLatest: "Latest version",
  164. CheckUpdate: "Check Update",
  165. IsChecking: "Checking update...",
  166. FoundUpdate: (x: string) => `Found new version: ${x}`,
  167. GoToUpdate: "Update",
  168. },
  169. SendKey: "Send Key",
  170. Theme: "Theme",
  171. TightBorder: "Tight Border",
  172. SendPreviewBubble: {
  173. Title: "Send Preview Bubble",
  174. SubTitle: "Preview markdown in bubble",
  175. },
  176. AutoGenerateTitle: {
  177. Title: "Auto Generate Title",
  178. SubTitle: "Generate a suitable title based on the conversation content",
  179. },
  180. Sync: {
  181. LastUpdate: "Last Update",
  182. LocalState: "Local Data",
  183. Overview: (overview: any) => {
  184. return `${overview.chat} chats,${overview.message} messages,${overview.prompt} prompts,${overview.mask} masks`;
  185. },
  186. ImportFailed: "Failed to import from file",
  187. },
  188. Mask: {
  189. Splash: {
  190. Title: "Mask Splash Screen",
  191. SubTitle: "Show a mask splash screen before starting new chat",
  192. },
  193. Builtin: {
  194. Title: "Hide Builtin Masks",
  195. SubTitle: "Hide builtin masks in mask list",
  196. },
  197. },
  198. Prompt: {
  199. Disable: {
  200. Title: "Disable auto-completion",
  201. SubTitle: "Input / to trigger auto-completion",
  202. },
  203. List: "Prompt List",
  204. ListCount: (builtin: number, custom: number) =>
  205. `${builtin} built-in, ${custom} user-defined`,
  206. Edit: "Edit",
  207. Modal: {
  208. Title: "Prompt List",
  209. Add: "Add One",
  210. Search: "Search Prompts",
  211. },
  212. EditModal: {
  213. Title: "Edit Prompt",
  214. },
  215. },
  216. HistoryCount: {
  217. Title: "Attached Messages Count",
  218. SubTitle: "Number of sent messages attached per request",
  219. },
  220. CompressThreshold: {
  221. Title: "History Compression Threshold",
  222. SubTitle:
  223. "Will compress if uncompressed messages length exceeds the value",
  224. },
  225. Token: {
  226. Title: "API Key",
  227. SubTitle: "Use your key to ignore access code limit",
  228. Placeholder: "OpenAI API Key",
  229. },
  230. Usage: {
  231. Title: "Account Balance",
  232. SubTitle(used: any, total: any) {
  233. return `Used this month $${used}, subscription $${total}`;
  234. },
  235. IsChecking: "Checking...",
  236. Check: "Check",
  237. NoAccess: "Enter API Key to check balance",
  238. },
  239. AccessCode: {
  240. Title: "Access Code",
  241. SubTitle: "Access control enabled",
  242. Placeholder: "Need Access Code",
  243. },
  244. Endpoint: {
  245. Title: "Endpoint",
  246. SubTitle: "Custom endpoint must start with http(s)://",
  247. },
  248. CustomModel: {
  249. Title: "Custom Models",
  250. SubTitle: "Add extra model options, separate by comma",
  251. },
  252. Model: "Model",
  253. Temperature: {
  254. Title: "Temperature",
  255. SubTitle: "A larger value makes the more random output",
  256. },
  257. TopP: {
  258. Title: "Top P",
  259. SubTitle: "Do not alter this value together with temperature",
  260. },
  261. MaxTokens: {
  262. Title: "Max Tokens",
  263. SubTitle: "Maximum length of input tokens and generated tokens",
  264. },
  265. PresencePenalty: {
  266. Title: "Presence Penalty",
  267. SubTitle:
  268. "A larger value increases the likelihood to talk about new topics",
  269. },
  270. FrequencyPenalty: {
  271. Title: "Frequency Penalty",
  272. SubTitle:
  273. "A larger value decreasing the likelihood to repeat the same line",
  274. },
  275. },
  276. Store: {
  277. DefaultTopic: "New Conversation",
  278. BotHello: "Hello! How can I assist you today?",
  279. Error: "Something went wrong, please try again later.",
  280. Prompt: {
  281. History: (content: string) =>
  282. "This is a summary of the chat history as a recap: " + content,
  283. Topic:
  284. "Please generate a four to five word title summarizing our conversation without any lead-in, punctuation, quotation marks, periods, symbols, or additional text. Remove enclosing quotation marks.",
  285. Summarize:
  286. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  287. },
  288. },
  289. Copy: {
  290. Success: "Copied to clipboard",
  291. Failed: "Copy failed, please grant permission to access clipboard",
  292. },
  293. Context: {
  294. Toast: (x: any) => `With ${x} contextual prompts`,
  295. Edit: "Current Chat Settings",
  296. Add: "Add a Prompt",
  297. Clear: "Context Cleared",
  298. Revert: "Revert",
  299. },
  300. Plugin: {
  301. Name: "Plugin",
  302. },
  303. FineTuned: {
  304. Sysmessage: "You are an assistant that",
  305. },
  306. Mask: {
  307. Name: "Mask",
  308. Page: {
  309. Title: "Prompt Template",
  310. SubTitle: (count: number) => `${count} prompt templates`,
  311. Search: "Search Templates",
  312. Create: "Create",
  313. },
  314. Item: {
  315. Info: (count: number) => `${count} prompts`,
  316. Chat: "Chat",
  317. View: "View",
  318. Edit: "Edit",
  319. Delete: "Delete",
  320. DeleteConfirm: "Confirm to delete?",
  321. },
  322. EditModal: {
  323. Title: (readonly: boolean) =>
  324. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  325. Download: "Download",
  326. Clone: "Clone",
  327. },
  328. Config: {
  329. Avatar: "Bot Avatar",
  330. Name: "Bot Name",
  331. Sync: {
  332. Title: "Use Global Config",
  333. SubTitle: "Use global config in this chat",
  334. Confirm: "Confirm to override custom config with global config?",
  335. },
  336. HideContext: {
  337. Title: "Hide Context Prompts",
  338. SubTitle: "Do not show in-context prompts in chat",
  339. },
  340. Share: {
  341. Title: "Share This Mask",
  342. SubTitle: "Generate a link to this mask",
  343. Action: "Copy Link",
  344. },
  345. },
  346. },
  347. NewChat: {
  348. Return: "Return",
  349. Skip: "Just Start",
  350. Title: "Pick a Mask",
  351. SubTitle: "Chat with the Soul behind the Mask",
  352. More: "Find More",
  353. NotShow: "Never Show Again",
  354. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  355. },
  356. UI: {
  357. Confirm: "Confirm",
  358. Cancel: "Cancel",
  359. Close: "Close",
  360. Create: "Create",
  361. Edit: "Edit",
  362. Export: "Export",
  363. Import: "Import",
  364. Sync: "Sync",
  365. },
  366. Exporter: {
  367. Model: "Model",
  368. Messages: "Messages",
  369. Topic: "Topic",
  370. Time: "Time",
  371. },
  372. URLCommand: {
  373. Code: "Detected access code from url, confirm to apply? ",
  374. Settings: "Detected settings from url, confirm to apply?",
  375. },
  376. };
  377. export default en;