dataset-documents.ts 11 KB

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