mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
124 lines
5.3 KiB
TypeScript
124 lines
5.3 KiB
TypeScript
const translation = {
|
|
steps: {
|
|
header: {
|
|
creation: 'Create Dataset',
|
|
update: 'Add data',
|
|
},
|
|
one: 'Choose data source',
|
|
two: 'Text Preprocessing and Cleaning',
|
|
three: 'Execute and finish',
|
|
},
|
|
error: {
|
|
unavailable: 'This dataset is not avaliable',
|
|
},
|
|
stepOne: {
|
|
filePreview: 'File Preview',
|
|
pagePreview: 'Page Preview',
|
|
dataSourceType: {
|
|
file: 'Import from text file',
|
|
notion: 'Sync from Notion',
|
|
web: 'Sync from web site',
|
|
},
|
|
uploader: {
|
|
title: 'Upload text file',
|
|
button: 'Drag and drop file, or',
|
|
browse: 'Browse',
|
|
tip: 'Supports txt, html, markdown, xlsx, and pdf. Max {{size}}MB each.',
|
|
validation: {
|
|
typeError: 'File type not supported',
|
|
size: 'File too large. Maximum is {{size}}MB',
|
|
count: 'Multiple files not supported',
|
|
},
|
|
cancel: 'Cancel',
|
|
change: 'Change',
|
|
failed: 'Upload failed',
|
|
},
|
|
notionSyncTitle: 'Notion is not connected',
|
|
notionSyncTip: 'To sync with Notion, connection to Notion must be established first.',
|
|
connect: 'Go to connect',
|
|
button: 'next',
|
|
emptyDatasetCreation: 'I want to create an empty dataset',
|
|
modal: {
|
|
title: 'Create an empty dataset',
|
|
tip: 'An empty dataset will contain no documents, and you can upload documents any time.',
|
|
input: 'Dataset name',
|
|
placeholder: 'Please input',
|
|
nameNotEmpty: 'Name cannot be empty',
|
|
nameLengthInvaild: 'Name must be between 1 to 40 characters',
|
|
cancelButton: 'Cancel',
|
|
confirmButton: 'Create',
|
|
failed: 'Creation failed',
|
|
},
|
|
},
|
|
stepTwo: {
|
|
segmentation: 'Segmentation settings',
|
|
auto: 'Automatic',
|
|
autoDescription: 'Automatically set segmentation and preprocessing rules. Unfamiliar users are recommended to select this.',
|
|
custom: 'Custom',
|
|
customDescription: 'Customize segmentation rules, segmentation length, and preprocessing rules, etc.',
|
|
separator: 'Segment identifier',
|
|
separatorPlaceholder: 'For example, newline (\\\\n) or special separator (such as "***")',
|
|
maxLength: 'Maximum segment length',
|
|
rules: 'Text preprocessing rules',
|
|
removeExtraSpaces: 'Replace consecutive spaces, newlines and tabs',
|
|
removeUrlEmails: 'Delete all URLs and email addresses',
|
|
removeStopwords: 'Remove stopwords such as "a", "an", "the"',
|
|
preview: 'Confirm & Preview',
|
|
reset: 'Reset',
|
|
indexMode: 'Index mode',
|
|
qualified: 'High Quality',
|
|
recommend: 'Recommend',
|
|
qualifiedTip: 'Call OpenAI\'s embedding interface for processing to provide higher accuracy when users query.',
|
|
warning: 'Please set up the model provider API key first.',
|
|
click: 'Go to settings',
|
|
economical: 'Economical',
|
|
economicalTip: 'Use offline vector engines, keyword indexes, etc. to reduce accuracy without spending tokens',
|
|
QATitle: 'Segmenting in Question & Answer format',
|
|
QATip: 'Enable this option will consume more tokens',
|
|
emstimateCost: 'Estimation',
|
|
emstimateSegment: 'Estimated segments',
|
|
segmentCount: 'segments',
|
|
calculating: 'Calculating...',
|
|
fileSource: 'Preprocess documents',
|
|
notionSource: 'Preprocess pages',
|
|
other: 'and other ',
|
|
fileUnit: ' files',
|
|
notionUnit: ' pages',
|
|
lastStep: 'Last step',
|
|
nextStep: 'Save & Process',
|
|
save: 'Save & Process',
|
|
cancel: 'Cancel',
|
|
sideTipTitle: 'Why segment and preprocess?',
|
|
sideTipP1: 'When processing text data, segmentation and cleaning are two important preprocessing steps.',
|
|
sideTipP2: 'Segmentation splits long text into paragraphs so models can understand better. This improves the quality and relevance of model results.',
|
|
sideTipP3: 'Cleaning removes unnecessary characters and formats, making datasets cleaner and easier to parse.',
|
|
sideTipP4: 'Proper segmentation and cleaning improve model performance, providing more accurate and valuable results.',
|
|
previewTitle: 'Preview',
|
|
previewButton: 'Switching to Q&A format',
|
|
previewSwitchTipStart: 'The current segment preview is in text format, switching to a question-and-answer format preview will',
|
|
previewSwitchTipEnd: ' consume additional tokens',
|
|
characters: 'characters',
|
|
indexSettedTip: 'To change the index method, please go to the ',
|
|
datasetSettingLink: 'dataset settings.',
|
|
},
|
|
stepThree: {
|
|
creationTitle: '🎉 Dataset created',
|
|
creationContent: 'We automatically named the dataset, you can modify it at any time',
|
|
label: 'Dataset name',
|
|
additionTitle: '🎉 Document uploaded',
|
|
additionP1: 'The document has been uploaded to the dataset',
|
|
additionP2: ', you can find it in the document list of the dataset。',
|
|
stop: 'Stop processing',
|
|
resume: 'Resume processing',
|
|
navTo: 'Go to document',
|
|
sideTipTitle: 'What\'s next',
|
|
sideTipContent: 'After the document finishes indexing, the dataset can be integrated into the application as context, you can find the context setting in the prompt orchestration page. You can also create it as an independent ChatGPT indexing plugin for release.',
|
|
modelTitle: 'Are you sure to stop embedding?',
|
|
modelContent: 'If you need to resume processing later, you will continue from where you left off.',
|
|
modelButtonConfirm: 'Confirm',
|
|
modelButtonCancel: 'Cancel',
|
|
},
|
|
}
|
|
|
|
export default translation
|