dataset-documents.ts 12 KB

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