dataset-documents.ts 10 KB

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