dataset-documents.ts 11 KB

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