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