Merge branch 'dev' into hugo-shipping-notice
# Conflicts: # .env.dev # .env.test # backend/app/api/__init__.py # docs/funclist.md # frontend/src/features/chat/composables/useChatPage.ts
This commit is contained in:
commit
f72c1c9f0e
101 files changed
+11163
-334
No files matched your search
@@ -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"
|
||||
},
|
||||
|
||||
@@ -471,8 +471,8 @@
|
||||
}
|
||||
},
|
||||
"training": {
|
||||
"badge": "Onboarding Training Workspace",
|
||||
"title": "Onboarding Training Agent",
|
||||
"badge": "Employee Training Workspace",
|
||||
"title": "",
|
||||
"subtitle": "Complete video learning, knowledge review, one-question-at-a-time testing, and HR reporting in the same chat page.",
|
||||
"tabs": {
|
||||
"learner": "Learner",
|
||||
@@ -482,7 +482,8 @@
|
||||
"syncLearnerToChat": "Sync learner context to chat",
|
||||
"syncHrToChat": "Sync HR filters to chat",
|
||||
"expandWorkspace": "Expand workspace",
|
||||
"collapseWorkspace": "Collapse workspace"
|
||||
"collapseWorkspace": "Collapse Workspace",
|
||||
"viewExamPdf": "View Exam PDF"
|
||||
},
|
||||
"steps": {
|
||||
"video": "Watch Video",
|
||||
@@ -514,7 +515,7 @@
|
||||
"title": "Step 3: One-question-at-a-time exam",
|
||||
"questionCounter": "Question {current} / {total}",
|
||||
"currentScore": "Current score: {score}",
|
||||
"passLine": "Pass line: 90 points",
|
||||
"passLine": "Pass line: {passScore} points",
|
||||
"correctFeedback": "Correct. Move on to the next question.",
|
||||
"wrongFeedback": "Incorrect. The correct answer is now shown.",
|
||||
"selectedAnswer": "Your answer: {answer}",
|
||||
@@ -527,8 +528,8 @@
|
||||
"failedTag": "Retake required",
|
||||
"passTitle": "Congratulations, you passed the onboarding exam",
|
||||
"failTitle": "This attempt did not meet the requirement",
|
||||
"passDescription": "The frontend pass-state interaction is complete. Once the backend is connected, it can write training records and the completion date.",
|
||||
"failDescription": "According to HR rules, any score below 90 requires a full retake until the learner passes.",
|
||||
"passDescription": "You passed this exam successfully. The score is automatically synced to the HR console and saved into the training record.",
|
||||
"failDescription": "According to HR rules, any score below {passScore} requires a full retake until the learner passes.",
|
||||
"scoreLabel": "Final score",
|
||||
"attemptsLabel": "Attempts",
|
||||
"correctCount": "Correct answers",
|
||||
@@ -545,9 +546,9 @@
|
||||
},
|
||||
"rules": {
|
||||
"title": "Exam rules",
|
||||
"rule1": "There are 20 questions, 5 points each, with a full score of 100.",
|
||||
"rule1": "There are {total} questions, and the system calculates the result on a 100-point scale.",
|
||||
"rule2": "The system enforces one question, one answer, one feedback. Wrong answers show the correct answer immediately.",
|
||||
"rule3": "Any score below 90 is treated as failed and requires a retake.",
|
||||
"rule3": "Any score below {passScore} is treated as failed and requires a retake.",
|
||||
"rule4": "HR can view statistics and export Excel from the same chat page."
|
||||
},
|
||||
"hr": {
|
||||
@@ -594,7 +595,24 @@
|
||||
"afterSummary": "I finished reviewing the knowledge points. Please switch to exam mode and ask the first question.",
|
||||
"afterPass": "I passed the onboarding training exam with a score of {score}. Please help me generate a short completion summary.",
|
||||
"afterFail": "I scored {score} in the onboarding training exam and did not pass. Please summarize the weak points and prepare a retake reminder.",
|
||||
"examInProgress": "I am taking the onboarding training exam and am currently on question {index}/{total}. Please stay in proctor mode and continue."
|
||||
"examInProgress": "I am taking the onboarding training exam and am currently on question {index}/{total}. Please stay in proctor mode and continue.",
|
||||
"assistantVideoIntro": "👋 Welcome aboard! I am your onboarding training assistant. Today's training has three steps: watch the video ➡️ review the key knowledge points ➡️ take the quiz ({passScore} points to pass).\n\n▶️ Please start with the onboarding training video. After watching it, move on to the knowledge review.",
|
||||
"assistantSummaryIntro": "Great. Based on the video, I pulled together the key knowledge points you are most likely to be tested on:",
|
||||
"assistantSummaryReady": "Ready for the challenge? Click Start Exam directly or reply \"Start Exam\" in the chat.",
|
||||
"assistantQuestionSingleType": "Single choice",
|
||||
"assistantQuestionBooleanType": "True or false",
|
||||
"assistantQuestionReplyHint": "Reply with the option or the answer text directly.",
|
||||
"assistantResultPass": "🎉 **Congratulations!** Your final score is **{score}**. You passed the onboarding assessment, and your score has been synced to HR automatically.",
|
||||
"assistantResultFail": "📊 **Exam finished!** Your final score is **{score}**. The passing line is {passScore}. Reply \"Retake Exam\" to try again.",
|
||||
"startExamCommand": "Start Exam",
|
||||
"restartExamCommand": "Retake Exam"
|
||||
},
|
||||
"errors": {
|
||||
"persistTitle": "Training record save failed",
|
||||
"persistBody": "The current exam result has not been written to the database, so the HR console and statistics will not update",
|
||||
"loadTitle": "Training record load failed",
|
||||
"loadBody": "The training record cannot be loaded from the database right now, so the page may not reflect the latest result",
|
||||
"questionBankEmpty": "The training question bank is empty. Please maintain it first in the Agent configuration."
|
||||
},
|
||||
"summaryPoints": [
|
||||
"Salary is paid on the 15th of each month, and attendance or leave requests must go through OA.",
|
||||
|
||||
@@ -0,0 +1,184 @@
|
||||
{
|
||||
"ledger": {
|
||||
"notice": "This page manages the equipment ledger.",
|
||||
"tabs": {
|
||||
"list": "Equipment List",
|
||||
"form": "Equipment Config"
|
||||
},
|
||||
"status": {
|
||||
"all": "All Statuses",
|
||||
"inUse": "In Use",
|
||||
"disabled": "Disabled",
|
||||
"scrapped": "Scrapped",
|
||||
"sold": "Sold"
|
||||
},
|
||||
"formTitle": {
|
||||
"create": "Add Equipment",
|
||||
"edit": "Edit Equipment"
|
||||
},
|
||||
"actions": {
|
||||
"search": "Search",
|
||||
"create": "Add Equipment",
|
||||
"downloadTemplate": "Download Template",
|
||||
"importExcel": "Import Excel",
|
||||
"importing": "Importing...",
|
||||
"edit": "Edit",
|
||||
"backToList": "Back to List",
|
||||
"cancel": "Cancel",
|
||||
"save": "Save",
|
||||
"saving": "Saving..."
|
||||
},
|
||||
"filters": {
|
||||
"keywordPlaceholder": "Search equipment code or name"
|
||||
},
|
||||
"table": {
|
||||
"deviceCode": "Equipment Code",
|
||||
"deviceName": "Equipment Name",
|
||||
"modelSpec": "Model/Spec",
|
||||
"manufacturer": "Vendor",
|
||||
"status": "Status",
|
||||
"operation": "Actions",
|
||||
"loading": "Loading...",
|
||||
"empty": "No equipment"
|
||||
},
|
||||
"fields": {
|
||||
"deviceCode": "Equipment Code",
|
||||
"deviceName": "Equipment Name",
|
||||
"modelSpec": "Model/Spec",
|
||||
"department": "Department",
|
||||
"devicePosition": "Equipment Position",
|
||||
"deviceStatus": "Equipment Status",
|
||||
"manufacturer": "Manufacturer",
|
||||
"responsibleUser": "Responsible Person",
|
||||
"entryDate": "Entry Date",
|
||||
"productionDate": "Production Date",
|
||||
"startDate": "Start Date",
|
||||
"maintenanceCycle": "Maintenance Cycle",
|
||||
"originalValue": "Original Value",
|
||||
"residualValue": "Residual Value",
|
||||
"accountSet": "Account Set",
|
||||
"remark": "Remark"
|
||||
},
|
||||
"placeholder": {
|
||||
"maintenanceCycle": "On demand / Monthly inspection"
|
||||
},
|
||||
"messages": {
|
||||
"required": "Equipment code and name are required",
|
||||
"saved": "Equipment ledger saved",
|
||||
"saveFailed": "Failed to save equipment ledger",
|
||||
"loadFailed": "Failed to load equipment ledger",
|
||||
"invalidFormat": "Please upload a .xlsx equipment ledger template",
|
||||
"fileTooLarge": "The equipment ledger file cannot exceed 10MB",
|
||||
"importDone": "Equipment ledger import completed",
|
||||
"importFailed": "Failed to import equipment ledger"
|
||||
},
|
||||
"importResult": "Import result: {total} rows, {created} created, {updated} updated, {failed} failed.",
|
||||
"importErrorRow": "Row {row}: {message}"
|
||||
},
|
||||
"panel": {
|
||||
"recordTitle": "Maintenance Records",
|
||||
"ledgerTitle": "Ledger Config",
|
||||
"adminOnly": "Admin actions: asset admins / maintenance supervisors only",
|
||||
"resizeTitle": "Drag to resize",
|
||||
"ledgerSubtitle": "Equipment List / Equipment Config",
|
||||
"recordSubtitle": "Record List / Record Config",
|
||||
"fullscreen": "Fullscreen",
|
||||
"exitFullscreen": "Exit fullscreen",
|
||||
"close": "Close"
|
||||
},
|
||||
"record": {
|
||||
"notice": "Maintenance records are for administrators to maintain repair requests, handling, costs, and labor hours. General queries can still be completed in chat.",
|
||||
"tabs": {
|
||||
"list": "Record List",
|
||||
"form": "Record Config"
|
||||
},
|
||||
"status": {
|
||||
"all": "All Statuses",
|
||||
"pending": "Pending",
|
||||
"processing": "In Repair",
|
||||
"done": "Completed",
|
||||
"cancelled": "Cancelled"
|
||||
},
|
||||
"formTitle": {
|
||||
"create": "Add Maintenance Record",
|
||||
"edit": "Edit Maintenance Record"
|
||||
},
|
||||
"actions": {
|
||||
"search": "Search",
|
||||
"create": "Add Record",
|
||||
"export": "Export",
|
||||
"exporting": "Exporting...",
|
||||
"edit": "Edit",
|
||||
"delete": "Delete",
|
||||
"deleting": "Deleting...",
|
||||
"backToList": "Back to List",
|
||||
"cancel": "Cancel",
|
||||
"save": "Save Record",
|
||||
"saving": "Saving..."
|
||||
},
|
||||
"filters": {
|
||||
"keywordPlaceholder": "Search equipment code or name"
|
||||
},
|
||||
"table": {
|
||||
"deviceCode": "Equipment Code",
|
||||
"deviceName": "Equipment Name",
|
||||
"modelSpec": "Model/Spec",
|
||||
"faultDescription": "Fault Description",
|
||||
"status": "Status",
|
||||
"repairer": "Repairer",
|
||||
"operation": "Actions",
|
||||
"loading": "Loading...",
|
||||
"empty": "No maintenance records"
|
||||
},
|
||||
"fields": {
|
||||
"deviceCode": "Equipment Code",
|
||||
"reportDate": "Report Date",
|
||||
"repairCategory": "Repair Category",
|
||||
"repairStatus": "Repair Status",
|
||||
"faultDescription": "Fault Description",
|
||||
"reporter": "Reporter",
|
||||
"approver": "Approver",
|
||||
"repairDate": "Repair Date",
|
||||
"sourceOrderNo": "Source Work Order No.",
|
||||
"repairUnit": "Repair Unit",
|
||||
"repairer": "Repairer",
|
||||
"repairCost": "Repair Cost",
|
||||
"repairHours": "Repair Hours",
|
||||
"repairDescription": "Repair Notes"
|
||||
},
|
||||
"placeholder": {
|
||||
"deviceCode": "e.g. EQ-2026-001",
|
||||
"repairCategory": "Daily repair / Maintenance / Inspection",
|
||||
"repairCost": "e.g. 1200.00",
|
||||
"repairHours": "e.g. 3.5h"
|
||||
},
|
||||
"deviceSnapshot": {
|
||||
"loading": "Querying equipment ledger...",
|
||||
"position": "Position",
|
||||
"department": "Department",
|
||||
"responsibleUser": "Responsible Person",
|
||||
"status": "Status",
|
||||
"empty": "Enter an equipment code to match an equipment ledger snapshot automatically."
|
||||
},
|
||||
"messages": {
|
||||
"loadFailed": "Failed to query maintenance records",
|
||||
"exported": "Maintenance records exported",
|
||||
"exportFailed": "Failed to export maintenance records",
|
||||
"deviceLoadFailed": "Failed to query equipment ledger",
|
||||
"required": "Equipment code, report date, and fault description are required",
|
||||
"updated": "Maintenance record updated",
|
||||
"created": "Maintenance record added",
|
||||
"saveFailed": "Failed to save maintenance record",
|
||||
"deleteConfirm": "Delete the maintenance record for {deviceCode}?",
|
||||
"deleted": "Maintenance record deleted",
|
||||
"deleteFailed": "Failed to delete maintenance record"
|
||||
}
|
||||
},
|
||||
"chat": {
|
||||
"deviceLedgerInfo": "Equipment Ledger Info",
|
||||
"matched": "Matched",
|
||||
"recentRecords": "Recent maintenance records ({count})",
|
||||
"viewRepairHistory": "View Repair History",
|
||||
"addRepairRecord": "Add Repair Record"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user