dataset-documents.ts 12 KB

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