您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

dataset-documents.ts 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. const translation = {
  2. list: {
  3. title: 'Documents',
  4. desc: 'All files of the Knowledge are shown here, and the entire Knowledge can be linked to Dify citations or indexed via the Chat plugin.',
  5. learnMore: 'Learn more',
  6. addFile: 'Add file',
  7. addPages: 'Add Pages',
  8. addUrl: 'Add URL',
  9. table: {
  10. header: {
  11. fileName: 'NAME',
  12. chunkingMode: 'CHUNKING MODE',
  13. words: 'WORDS',
  14. hitCount: 'RETRIEVAL COUNT',
  15. uploadTime: 'UPLOAD TIME',
  16. status: 'STATUS',
  17. action: 'ACTION',
  18. },
  19. rename: 'Rename',
  20. name: 'Name',
  21. },
  22. action: {
  23. uploadFile: 'Upload new file',
  24. settings: 'Chunking Settings',
  25. addButton: 'Add chunk',
  26. add: 'Add a chunk',
  27. batchAdd: 'Batch add',
  28. archive: 'Archive',
  29. unarchive: 'Unarchive',
  30. delete: 'Delete',
  31. enableWarning: 'Archived file cannot be enabled',
  32. sync: 'Sync',
  33. pause: 'Pause',
  34. resume: 'Resume',
  35. },
  36. index: {
  37. enable: 'Enable',
  38. disable: 'Disable',
  39. all: 'All',
  40. enableTip: 'The file can be indexed',
  41. disableTip: 'The file cannot be indexed',
  42. },
  43. status: {
  44. queuing: 'Queuing',
  45. indexing: 'Indexing',
  46. paused: 'Paused',
  47. error: 'Error',
  48. available: 'Available',
  49. enabled: 'Enabled',
  50. disabled: 'Disabled',
  51. archived: 'Archived',
  52. },
  53. empty: {
  54. title: 'There is no documentation yet',
  55. upload: {
  56. tip: 'You can upload files, sync from the website, or from web apps like Notion, GitHub, etc.',
  57. },
  58. sync: {
  59. tip: 'Dify will periodically download files from your Notion and complete processing.',
  60. },
  61. },
  62. delete: {
  63. title: 'Are you sure Delete?',
  64. content: 'If you need to resume processing later, you will continue from where you left off',
  65. },
  66. batchModal: {
  67. title: 'Batch add chunks',
  68. csvUploadTitle: 'Drag and drop your CSV file here, or ',
  69. browse: 'browse',
  70. tip: 'The CSV file must conform to the following structure:',
  71. question: 'question',
  72. answer: 'answer',
  73. contentTitle: 'chunk content',
  74. content: 'content',
  75. template: 'Download the template here',
  76. cancel: 'Cancel',
  77. run: 'Run Batch',
  78. runError: 'Run batch failed',
  79. processing: 'In batch processing',
  80. completed: 'Import completed',
  81. error: 'Import Error',
  82. ok: 'OK',
  83. },
  84. },
  85. metadata: {
  86. title: 'Metadata',
  87. desc: 'Labeling metadata for documents allows AI to access them in a timely manner and exposes the source of references for users.',
  88. dateTimeFormat: 'MMMM D, YYYY hh:mm A',
  89. docTypeSelectTitle: 'Please select a document type',
  90. docTypeChangeTitle: 'Change document type',
  91. docTypeSelectWarning:
  92. 'If the document type is changed, the now filled metadata will no longer be preserved',
  93. firstMetaAction: 'Let\'s go',
  94. placeholder: {
  95. add: 'Add ',
  96. select: 'Select ',
  97. },
  98. source: {
  99. upload_file: 'Upload File',
  100. notion: 'Sync form Notion',
  101. github: 'Sync form Github',
  102. local_file: 'Local File',
  103. website_crawl: 'Website Crawl',
  104. online_document: 'Online Document',
  105. },
  106. type: {
  107. book: 'Book',
  108. webPage: 'Web Page',
  109. paper: 'Paper',
  110. socialMediaPost: 'Social Media Post',
  111. personalDocument: 'Personal Document',
  112. businessDocument: 'Business Document',
  113. IMChat: 'IM Chat',
  114. wikipediaEntry: 'Wikipedia Entry',
  115. notion: 'Sync form Notion',
  116. github: 'Sync form Github',
  117. technicalParameters: 'Technical Parameters',
  118. },
  119. field: {
  120. processRule: {
  121. processDoc: 'Process Document',
  122. segmentRule: 'Chunk Rule',
  123. segmentLength: 'Chunks Length',
  124. processClean: 'Text Process Clean',
  125. },
  126. book: {
  127. title: 'Title',
  128. language: 'Language',
  129. author: 'Author',
  130. publisher: 'Publisher',
  131. publicationDate: 'Publication Date',
  132. ISBN: 'ISBN',
  133. category: 'Category',
  134. },
  135. webPage: {
  136. title: 'Title',
  137. url: 'URL',
  138. language: 'Language',
  139. authorPublisher: 'Author/Publisher',
  140. publishDate: 'Publish Date',
  141. topicKeywords: 'Topic/Keywords',
  142. description: 'Description',
  143. },
  144. paper: {
  145. title: 'Title',
  146. language: 'Language',
  147. author: 'Author',
  148. publishDate: 'Publish Date',
  149. journalConferenceName: 'Journal/Conference Name',
  150. volumeIssuePage: 'Volume/Issue/Page',
  151. DOI: 'DOI',
  152. topicsKeywords: 'Topics/Keywords',
  153. abstract: 'Abstract',
  154. },
  155. socialMediaPost: {
  156. platform: 'Platform',
  157. authorUsername: 'Author/Username',
  158. publishDate: 'Publish Date',
  159. postURL: 'Post URL',
  160. topicsTags: 'Topics/Tags',
  161. },
  162. personalDocument: {
  163. title: 'Title',
  164. author: 'Author',
  165. creationDate: 'Creation Date',
  166. lastModifiedDate: 'Last Modified Date',
  167. documentType: 'Document Type',
  168. tagsCategory: 'Tags/Category',
  169. },
  170. businessDocument: {
  171. title: 'Title',
  172. author: 'Author',
  173. creationDate: 'Creation Date',
  174. lastModifiedDate: 'Last Modified Date',
  175. documentType: 'Document Type',
  176. departmentTeam: 'Department/Team',
  177. },
  178. IMChat: {
  179. chatPlatform: 'Chat Platform',
  180. chatPartiesGroupName: 'Chat Parties/Group Name',
  181. participants: 'Participants',
  182. startDate: 'Start Date',
  183. endDate: 'End Date',
  184. topicsKeywords: 'Topics/Keywords',
  185. fileType: 'File Type',
  186. },
  187. wikipediaEntry: {
  188. title: 'Title',
  189. language: 'Language',
  190. webpageURL: 'Webpage URL',
  191. editorContributor: 'Editor/Contributor',
  192. lastEditDate: 'Last Edit Date',
  193. summaryIntroduction: 'Summary/Introduction',
  194. },
  195. notion: {
  196. title: 'Title',
  197. language: 'Language',
  198. author: 'Author',
  199. createdTime: 'Created Time',
  200. lastModifiedTime: 'Last Modified Time',
  201. url: 'URL',
  202. tag: 'Tag',
  203. description: 'Description',
  204. },
  205. github: {
  206. repoName: 'Repo Name',
  207. repoDesc: 'Repo Description',
  208. repoOwner: 'Repo Owner',
  209. fileName: 'File Name',
  210. filePath: 'File Path',
  211. programmingLang: 'Programming Language',
  212. url: 'URL',
  213. license: 'License',
  214. lastCommitTime: 'Last Commit Time',
  215. lastCommitAuthor: 'Last Commit Author',
  216. },
  217. originInfo: {
  218. originalFilename: 'Original filename',
  219. originalFileSize: 'Original file size',
  220. uploadDate: 'Upload date',
  221. lastUpdateDate: 'Last update date',
  222. source: 'Source',
  223. },
  224. technicalParameters: {
  225. segmentSpecification: 'Chunks specification',
  226. segmentLength: 'Chunks length',
  227. avgParagraphLength: 'Avg. paragraph length',
  228. paragraphs: 'Paragraphs',
  229. hitCount: 'Retrieval count',
  230. embeddingTime: 'Embedding time',
  231. embeddedSpend: 'Embedded spend',
  232. },
  233. },
  234. languageMap: {
  235. zh: 'Chinese',
  236. en: 'English',
  237. es: 'Spanish',
  238. fr: 'French',
  239. de: 'German',
  240. ja: 'Japanese',
  241. ko: 'Korean',
  242. ru: 'Russian',
  243. ar: 'Arabic',
  244. pt: 'Portuguese',
  245. it: 'Italian',
  246. nl: 'Dutch',
  247. pl: 'Polish',
  248. sv: 'Swedish',
  249. tr: 'Turkish',
  250. he: 'Hebrew',
  251. hi: 'Hindi',
  252. da: 'Danish',
  253. fi: 'Finnish',
  254. no: 'Norwegian',
  255. hu: 'Hungarian',
  256. el: 'Greek',
  257. cs: 'Czech',
  258. th: 'Thai',
  259. id: 'Indonesian',
  260. },
  261. categoryMap: {
  262. book: {
  263. fiction: 'Fiction',
  264. biography: 'Biography',
  265. history: 'History',
  266. science: 'Science',
  267. technology: 'Technology',
  268. education: 'Education',
  269. philosophy: 'Philosophy',
  270. religion: 'Religion',
  271. socialSciences: 'SocialSciences',
  272. art: 'Art',
  273. travel: 'Travel',
  274. health: 'Health',
  275. selfHelp: 'SelfHelp',
  276. businessEconomics: 'BusinessEconomics',
  277. cooking: 'Cooking',
  278. childrenYoungAdults: 'ChildrenYoungAdults',
  279. comicsGraphicNovels: 'ComicsGraphicNovels',
  280. poetry: 'Poetry',
  281. drama: 'Drama',
  282. other: 'Other',
  283. },
  284. personalDoc: {
  285. notes: 'Notes',
  286. blogDraft: 'Blog Draft',
  287. diary: 'Diary',
  288. researchReport: 'Research Report',
  289. bookExcerpt: 'Book Excerpt',
  290. schedule: 'Schedule',
  291. list: 'List',
  292. projectOverview: 'Project Overview',
  293. photoCollection: 'Photo Collection',
  294. creativeWriting: 'Creative Writing',
  295. codeSnippet: 'Code Snippet',
  296. designDraft: 'Design Draft',
  297. personalResume: 'Personal Resume',
  298. other: 'Other',
  299. },
  300. businessDoc: {
  301. meetingMinutes: 'Meeting Minutes',
  302. researchReport: 'Research Report',
  303. proposal: 'Proposal',
  304. employeeHandbook: 'Employee Handbook',
  305. trainingMaterials: 'Training Materials',
  306. requirementsDocument: 'Requirements Document',
  307. designDocument: 'Design Document',
  308. productSpecification: 'Product Specification',
  309. financialReport: 'Financial Report',
  310. marketAnalysis: 'Market Analysis',
  311. projectPlan: 'Project Plan',
  312. teamStructure: 'Team Structure',
  313. policiesProcedures: 'Policies & Procedures',
  314. contractsAgreements: 'Contracts & Agreements',
  315. emailCorrespondence: 'Email Correspondence',
  316. other: 'Other',
  317. },
  318. },
  319. },
  320. embedding: {
  321. processing: 'Embedding processing...',
  322. paused: 'Embedding paused',
  323. completed: 'Embedding completed',
  324. error: 'Embedding error',
  325. docName: 'Preprocessing document',
  326. mode: 'Chunking Setting',
  327. segmentLength: 'Maximum Chunk Length',
  328. textCleaning: 'Text Preprocessing Rules',
  329. segments: 'Paragraphs',
  330. highQuality: 'High-quality mode',
  331. economy: 'Economy mode',
  332. estimate: 'Estimated consumption',
  333. stop: 'Stop processing',
  334. pause: 'Pause',
  335. resume: 'Resume',
  336. automatic: 'Automatic',
  337. custom: 'Custom',
  338. hierarchical: 'Parent-child',
  339. previewTip: 'Paragraph preview will be available after embedding is complete',
  340. parentMaxTokens: 'Parent',
  341. childMaxTokens: 'Child',
  342. },
  343. segment: {
  344. paragraphs: 'Paragraphs',
  345. chunks_one: 'CHUNK',
  346. chunks_other: 'CHUNKS',
  347. parentChunks_one: 'PARENT CHUNK',
  348. parentChunks_other: 'PARENT CHUNKS',
  349. childChunks_one: 'CHILD CHUNK',
  350. childChunks_other: 'CHILD CHUNKS',
  351. searchResults_zero: 'RESULT',
  352. searchResults_one: 'RESULT',
  353. searchResults_other: 'RESULTS',
  354. empty: 'No Chunk found',
  355. clearFilter: 'Clear filter',
  356. chunk: 'Chunk',
  357. parentChunk: 'Parent-Chunk',
  358. newChunk: 'New Chunk',
  359. childChunk: 'Child-Chunk',
  360. newChildChunk: 'New Child Chunk',
  361. keywords: 'KEYWORDS',
  362. addKeyWord: 'Add keyword',
  363. keywordEmpty: 'The keyword cannot be empty',
  364. keywordError: 'The maximum length of keyword is 20',
  365. keywordDuplicate: 'The keyword already exists',
  366. characters_one: 'character',
  367. characters_other: 'characters',
  368. hitCount: 'Retrieval count',
  369. vectorHash: 'Vector hash: ',
  370. questionPlaceholder: 'Add question here',
  371. questionEmpty: 'Question can not be empty',
  372. answerPlaceholder: 'Add answer here',
  373. answerEmpty: 'Answer can not be empty',
  374. contentPlaceholder: 'Add content here',
  375. contentEmpty: 'Content can not be empty',
  376. newTextSegment: 'New Text Segment',
  377. newQaSegment: 'New Q&A Segment',
  378. addChunk: 'Add Chunk',
  379. addChildChunk: 'Add Child Chunk',
  380. addAnother: 'Add another',
  381. delete: 'Delete this chunk ?',
  382. chunkAdded: '1 chunk added',
  383. childChunkAdded: '1 child chunk added',
  384. editChunk: 'Edit Chunk',
  385. editParentChunk: 'Edit Parent Chunk',
  386. editChildChunk: 'Edit Child Chunk',
  387. chunkDetail: 'Chunk Detail',
  388. regenerationConfirmTitle: 'Do you want to regenerate child chunks?',
  389. regenerationConfirmMessage: 'Regenerating child chunks will overwrite the current child chunks, including edited chunks and newly added chunks. The regeneration cannot be undone.',
  390. regeneratingTitle: 'Regenerating child chunks',
  391. regeneratingMessage: 'This may take a moment, please wait...',
  392. regenerationSuccessTitle: 'Regeneration completed',
  393. regenerationSuccessMessage: 'You can close this window.',
  394. edited: 'EDITED',
  395. editedAt: 'Edited at',
  396. dateTimeFormat: 'MM/DD/YYYY h:mm',
  397. expandChunks: 'Expand chunks',
  398. collapseChunks: 'Collapse chunks',
  399. },
  400. }
  401. export default translation