en.ts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  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. Mask: {
  181. Splash: {
  182. Title: "Mask Splash Screen",
  183. SubTitle: "Show a mask splash screen before starting new chat",
  184. },
  185. Builtin: {
  186. Title: "Hide Builtin Masks",
  187. SubTitle: "Hide builtin masks in mask list",
  188. },
  189. },
  190. Prompt: {
  191. Disable: {
  192. Title: "Disable auto-completion",
  193. SubTitle: "Input / to trigger auto-completion",
  194. },
  195. List: "Prompt List",
  196. ListCount: (builtin: number, custom: number) =>
  197. `${builtin} built-in, ${custom} user-defined`,
  198. Edit: "Edit",
  199. Modal: {
  200. Title: "Prompt List",
  201. Add: "Add One",
  202. Search: "Search Prompts",
  203. },
  204. EditModal: {
  205. Title: "Edit Prompt",
  206. },
  207. },
  208. HistoryCount: {
  209. Title: "Attached Messages Count",
  210. SubTitle: "Number of sent messages attached per request",
  211. },
  212. CompressThreshold: {
  213. Title: "History Compression Threshold",
  214. SubTitle:
  215. "Will compress if uncompressed messages length exceeds the value",
  216. },
  217. Token: {
  218. Title: "API Key",
  219. SubTitle: "Use your key to ignore access code limit",
  220. Placeholder: "OpenAI API Key",
  221. },
  222. Usage: {
  223. Title: "Account Balance",
  224. SubTitle(used: any, total: any) {
  225. return `Used this month $${used}, subscription $${total}`;
  226. },
  227. IsChecking: "Checking...",
  228. Check: "Check",
  229. NoAccess: "Enter API Key to check balance",
  230. },
  231. AccessCode: {
  232. Title: "Access Code",
  233. SubTitle: "Access control enabled",
  234. Placeholder: "Need Access Code",
  235. },
  236. Endpoint: {
  237. Title: "Endpoint",
  238. SubTitle: "Custom endpoint must start with http(s)://",
  239. },
  240. CustomModel: {
  241. Title: "Custom Models",
  242. SubTitle: "Add extra model options, separate by comma",
  243. },
  244. Model: "Model",
  245. Temperature: {
  246. Title: "Temperature",
  247. SubTitle: "A larger value makes the more random output",
  248. },
  249. TopP: {
  250. Title: "Top P",
  251. SubTitle: "Do not alter this value together with temperature",
  252. },
  253. MaxTokens: {
  254. Title: "Max Tokens",
  255. SubTitle: "Maximum length of input tokens and generated tokens",
  256. },
  257. PresencePenalty: {
  258. Title: "Presence Penalty",
  259. SubTitle:
  260. "A larger value increases the likelihood to talk about new topics",
  261. },
  262. FrequencyPenalty: {
  263. Title: "Frequency Penalty",
  264. SubTitle:
  265. "A larger value decreasing the likelihood to repeat the same line",
  266. },
  267. },
  268. Store: {
  269. DefaultTopic: "New Conversation",
  270. BotHello: "Hello! How can I assist you today?",
  271. Error: "Something went wrong, please try again later.",
  272. Prompt: {
  273. History: (content: string) =>
  274. "This is a summary of the chat history as a recap: " + content,
  275. Topic:
  276. "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.",
  277. Summarize:
  278. "Summarize the discussion briefly in 200 words or less to use as a prompt for future context.",
  279. },
  280. },
  281. Copy: {
  282. Success: "Copied to clipboard",
  283. Failed: "Copy failed, please grant permission to access clipboard",
  284. },
  285. Context: {
  286. Toast: (x: any) => `With ${x} contextual prompts`,
  287. Edit: "Current Chat Settings",
  288. Add: "Add a Prompt",
  289. Clear: "Context Cleared",
  290. Revert: "Revert",
  291. },
  292. Plugin: {
  293. Name: "Plugin",
  294. },
  295. Mask: {
  296. Name: "Mask",
  297. Page: {
  298. Title: "Prompt Template",
  299. SubTitle: (count: number) => `${count} prompt templates`,
  300. Search: "Search Templates",
  301. Create: "Create",
  302. },
  303. Item: {
  304. Info: (count: number) => `${count} prompts`,
  305. Chat: "Chat",
  306. View: "View",
  307. Edit: "Edit",
  308. Delete: "Delete",
  309. DeleteConfirm: "Confirm to delete?",
  310. },
  311. EditModal: {
  312. Title: (readonly: boolean) =>
  313. `Edit Prompt Template ${readonly ? "(readonly)" : ""}`,
  314. Download: "Download",
  315. Clone: "Clone",
  316. },
  317. Config: {
  318. Avatar: "Bot Avatar",
  319. Name: "Bot Name",
  320. Sync: {
  321. Title: "Use Global Config",
  322. SubTitle: "Use global config in this chat",
  323. Confirm: "Confirm to override custom config with global config?",
  324. },
  325. HideContext: {
  326. Title: "Hide Context Prompts",
  327. SubTitle: "Do not show in-context prompts in chat",
  328. },
  329. Share: {
  330. Title: "Share This Mask",
  331. SubTitle: "Generate a link to this mask",
  332. Action: "Copy Link",
  333. },
  334. },
  335. },
  336. NewChat: {
  337. Return: "Return",
  338. Skip: "Just Start",
  339. Title: "Pick a Mask",
  340. SubTitle: "Chat with the Soul behind the Mask",
  341. More: "Find More",
  342. NotShow: "Never Show Again",
  343. ConfirmNoShow: "Confirm to disable?You can enable it in settings later.",
  344. },
  345. UI: {
  346. Confirm: "Confirm",
  347. Cancel: "Cancel",
  348. Close: "Close",
  349. Create: "Create",
  350. Edit: "Edit",
  351. },
  352. Exporter: {
  353. Model: "Model",
  354. Messages: "Messages",
  355. Topic: "Topic",
  356. Time: "Time",
  357. },
  358. URLCommand: {
  359. Code: "Detected access code from url, confirm to apply? ",
  360. Settings: "Detected settings from url, confirm to apply?",
  361. },
  362. };
  363. export default en;