dataset-documents.ts 13 KB

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