fix(training-pdf-import): 修复培训试题PDF导入判断题解析

This commit is contained in:
runny committed 2026-07-06 01:39:08 +08:00
1 parent 3a22df736e
commit 91758ef2b4
19 files changed
+1767 -12

No files matched your search

+63
View File
@@ -28,6 +28,13 @@
"reports": "Data Reports",
"schedules": "Schedule Management"
},
"platformApps": {
"guideUsage": "Guide Usage",
"generalGuide": "General Guide",
"trainingVideo": "Employee Training Video",
"trainingExamPdf": "Employee Training Exam PDF",
"guideUsageHint": "The training workspace will prioritize guides marked as employee training video or employee training exam PDF."
},
"dash": {
"activeAgents": "Active Agents",
"totalUsers": "Total Users",
@@ -85,6 +92,9 @@
"email": "Email",
"department": "Department",
"role": "Role",
"featurePermissions": "Feature Permissions",
"trainingHrManage": "Training HR Admin",
"trainingHrManageHint": "Allows this user to open the employee training agent HR Management view for stats, filtering, and Excel export.",
"password": "Password",
"passwordHint": "(leave blank to keep)",
"noAgents": "No agents available."
@@ -203,6 +213,58 @@
"pollInterval": "Progress refresh interval (seconds)",
"lockInput": "Prevent sending new messages while a task is running",
"scheduleTaskRequired": "Please select a linked schedule first"
},
"training": {
"title": "Employee Training Configuration",
"subtitle": "Configure the training workspace pass line, review points, and question bank. After saving, the employee training page will read this backend content first.",
"enable": "Enable employee training workspace",
"enableHint": "When enabled, this agent uses the training flow of video, review, exam, and settlement.",
"disabledHint": "When disabled, this agent will not show the employee training workspace. Existing training content remains stored in the backend.",
"passScore": "Passing score",
"passScoreHint": "The frontend exam and result copy both use this percentage score as the pass line.",
"summaryPoints": "Review points",
"summaryPointsPlaceholder": "One item per line, for example: Salary is paid on the 15th of each month",
"summaryChecklist": "Must know before the exam",
"summaryChecklistPlaceholder": "One item per line, for example: Scores below 90 require a retake",
"questionBank": "Question bank",
"questionHint": "Supports single choice and true or false questions. Employees will use the updated bank immediately after saving.",
"emptyQuestionBank": "No question bank configured yet. The employee view will fall back to the default bank.",
"importFromPdf": "Import From Exam PDF",
"importingPdf": "Parsing PDF...",
"importPdfHint": "The system will parse the uploaded exam PDF \"{fileName}\" first. You can still review and edit the result manually after import.",
"importPdfMissing": "This agent does not have any uploaded guide marked as Employee Training Exam PDF yet. Please upload it first in Platform App Guides.",
"importPdfCreateFirst": "Please save this agent first, then import the question bank from an uploaded exam PDF.",
"importPdfAgentRequired": "Please save this agent first before importing the exam PDF",
"importPdfSuccess": "Imported {count} questions from \"{fileName}\"",
"importPdfPartialSuccess": "Imported {count} questions. These question numbers were skipped: {skipped}",
"importPdfOcrUsed": "This import was completed through OCR. Please review the prompts, options, and answers carefully.",
"importPdfOcrFallback": "Native PDF text parsing failed, so the import automatically fell back to OCR. Please review the prompts, options, and answers carefully.",
"importPdfWarnings": "Parsing notes: {warnings}",
"addQuestion": "Add question",
"removeQuestion": "Remove question",
"questionCardTitle": "Question {index}",
"questionId": "Question ID",
"questionIdPlaceholder": "For example: q1",
"questionType": "Question type",
"single": "Single choice",
"boolean": "True or false",
"correctAnswer": "Correct answer",
"booleanTrue": "True",
"booleanFalse": "False",
"questionPrompt": "Prompt",
"questionPromptPlaceholder": "Enter the question content",
"questionExplanation": "Explanation",
"questionExplanationPlaceholder": "Enter the explanation shown to the learner after answering",
"questionOptions": "Options",
"addOption": "Add option",
"optionLabel": "Option {label}",
"optionPlaceholder": "Enter option text",
"validation": {
"questionRequired": "Please configure at least one training question",
"questionPromptRequired": "Question {index} prompt is required",
"questionSingleOptions": "Question {index} needs at least 2 valid options",
"questionAnswerRequired": "Please choose the correct answer for question {index}"
}
}
},
"question": {
@@ -1023,6 +1085,7 @@
},
"role": {
"user": "User",
"hr": "HR",
"admin": "Admin",
"guest": "Guest"
},