feat(i18n): 将前端用户可见中文硬编码改为四语言

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
sophieandCursor committed 2026-07-30 14:39:16 +08:00
1 parent dce915ea30
commit ac7b53a523
105 files changed
+2928 -647

No files matched your search

+313 -2
View File
@@ -463,6 +463,7 @@
"oaRequestMissing": "OA request ID is missing.",
"devComingSoon": "This feature is under development",
"previewUnavailable": "Preview is temporarily unavailable",
"sourcePreviewLinkMissing": "No previewable link is available for this source file yet",
"invalidBrowserUrl": "Please enter a valid URL such as https://example.com or localhost:8891",
"enterBrowserUrl": "Please enter a URL first",
"queryLeaveBalance": "Checking your leave balance, please wait...",
@@ -532,7 +533,9 @@
"networkDisconnectedEmpty": "Connection lost before a reply was received. Please try again.",
"partialInterrupted": "The reply was interrupted. The content above may be incomplete—please ask again.",
"upstreamDisconnected": "The AI service connection was interrupted. Please try again.",
"generic": "The request failed. Please try again."
"generic": "The request failed. Please try again.",
"contextTooLong": "This conversation context is too long for the model to continue. Start a new chat and query the asset ID again.",
"workflowFailed": "Workflow execution failed. Please try again later."
},
"actions": {
"copy": "Copy",
@@ -977,7 +980,37 @@
"answer": "true",
"explanation": "Product requirements must cover both regulations and customer requirements."
}
]
],
"stepExamTitle": "Step 3: Exam",
"stepResultTitle": "Step 4: Results",
"scoreShort": "{score} pts",
"passScoreShort": "{passScore} pts",
"currentScoreLabel": "Score:",
"passLineLabel": "Pass line:",
"yourAnswerLabel": "Your answer:",
"correctAnswerLabel": "Correct answer:",
"wrongFeedbackShort": "Incorrect",
"finishAndViewResult": "Finish exam and view results",
"passTitleShort": "Congrats, you passed!",
"failTitleShort": "Sorry, you did not pass",
"wrongCountShort": "Wrong",
"syncedToHr": "Score synced to HR",
"clickPlayVideo": "Click to play video",
"agentDescription": "I am your onboarding training assistant. I will guide you through video learning, knowledge review, exam questions, and results in the same chat.",
"defaultQuestions": {
"employee": [
"What will this employee training cover?",
"What steps are required to complete training?",
"What are the pass rules for employee training?",
"What should I know before starting the exam?"
],
"hr": [
"How many people are in training now?",
"What is the current training pass rate?",
"Which employees have not finished training?",
"I want this month training score statistics"
]
}
},
"procurementContract": {
"modeCompare": "Contract Compare",
@@ -1100,5 +1133,283 @@
"attachmentAdded": "The returned contract adds {count} attachment page(s)",
"attachmentRemoved": "The returned contract removes {count} attachment page(s)",
"attachmentContentIgnored": "Attachment content is excluded from differences"
},
"learningWindow": "Learning Guide",
"guide": {
"collapseToc": "Collapse TOC",
"expandToc": "Expand TOC",
"selectHint": "Select a guide from the left to view"
},
"exitShort": "Exit",
"recommendedQuestion": "Suggested question",
"faqGroup": "FAQ",
"toolRun": {
"fallbackTitle": "Task progress",
"batch": "Batch: {runNo}",
"status": "Status: {status}",
"errorMessage": "Error: {message}",
"waitingStart": "Waiting for the check task to start...",
"currentStep": "Current stage: {step}",
"currentRow": "Current record: {rowId}",
"stepStarted": "Stage started: {time}",
"downloadExcel": "Download Excel",
"downloading": "Downloading...",
"downloadFailed": "Failed to download Excel",
"downloadFailedStatus": "Download failed: {status}",
"progress": "Progress {percent}%",
"startedAt": "Started: {time}",
"finishedAt": "Finished: {time}",
"total": "Total",
"processed": "Processed",
"success": "Succeeded",
"failed": "Failed",
"skipped": "Skipped",
"qualified": "Qualified",
"unqualified": "Unqualified",
"manual": "Manual review",
"kbSyncError": "Knowledge base sync error: {message}",
"waitingHint": "Live progress will appear here once the check starts.",
"statusRunning": "Running",
"statusSuccess": "Completed",
"statusPartialFailed": "Partially failed",
"statusFailed": "Failed",
"statusCancelled": "Cancelled",
"statusWaiting": "Waiting",
"kbSynced": "Knowledge base synced",
"kbSyncFailed": "Knowledge base sync failed",
"kbSyncing": "Syncing knowledge base",
"kbNotSynced": "Knowledge base not synced",
"kbUnknown": "Knowledge base: {status}",
"kbStatusUnknown": "Unknown",
"queryFailed": "Failed to load task progress",
"lockWaiting": "A task is running. Please wait until it finishes.",
"runNotFound": "No related check task found. Refresh later or check schedule run records."
},
"assetColumns": {
"id": "No.",
"assetId": "Asset ID",
"assetName": "Asset name",
"currencyAmount": "Amount (local currency)",
"specification": "Specification",
"accountPeriod": "Ledger",
"custodianPerson": "Custodian",
"custodianPersonFull": "Custodian name",
"custodianDept": "Custodian dept",
"custodianDeptFull": "Custodian department",
"image": "Image",
"storageLocation": "Storage location",
"assetStatus": "Asset status",
"residualValue": "Residual value",
"supplier": "Supplier",
"vendorAlias": "Vendor",
"assetNature": "Asset nature",
"quantity": "Quantity",
"unit": "Unit",
"acquisitionDate": "Acquisition date",
"acquisitionDateAlias": "Acquired on",
"accountingDate": "Posted date",
"createdAt": "Created at",
"updatedAt": "Updated at",
"snapshotTime": "Snapshot time",
"empty": "N/A",
"view": "View"
},
"assetHistory": {
"title": "Asset history",
"currentAsset": "Current asset: {name}",
"searching": "Searching shared-drive history files...",
"empty": "No matching history files found",
"modifiedAt": "Modified: {time}",
"sizeKb": "Size: {size} KB",
"matchReason": "Match: {reason}",
"viewFile": "View history",
"searchingToast": "Searching asset history. Please wait...",
"missingIdentifier": "This asset is missing an ID or name for history search",
"notFound": "No history file found for asset {name}. Contact an admin if one should exist.",
"queryFailed": "History lookup failed: {message}",
"searchFailed": "Failed to search asset history",
"shareNotConfigured": "Asset history folder is not configured. Contact an admin.",
"shareUnreachable": "Asset history share is unreachable. Ask an admin to check mount and permissions.",
"shareInvalid": "Asset history folder config is invalid. Ask an admin to review the share path."
},
"assetImage": {
"searchingToast": "Searching asset images. Please wait...",
"missingIdentifier": "This asset is missing an ID or name for image search",
"notFound": "No image found for asset {name}. Ask an admin to upload one.",
"queryFailed": "Image lookup failed: {message}",
"searchFailed": "Failed to search fixed-asset images",
"libraryNotConfigured": "Fixed-asset image library is not configured. Contact an admin.",
"noPhotoUploaded": "No photo has been uploaded by the device admin yet~"
},
"queryPreview": {
"title": "Full query result preview",
"viewAll": "View full preview",
"viewAllWithTotal": "View full preview ({total} rows)",
"agentNotReady": "The current agent is not ready. Please try again shortly.",
"loadFailed": "Failed to load the full preview",
"summary": "{total} rows · page {page} / {pages}",
"prev": "Previous",
"next": "Next",
"empty": "No preview data"
},
"attachmentsUi": {
"title": "Attachments",
"uploadLocal": "Upload local file",
"pasteUrl": "Paste URL",
"urlPlaceholder": "Paste attachment URL (http/https)",
"add": "Add",
"cancel": "Cancel",
"limitReached": "Attachment limit reached ({limit})",
"unsupportedType": "Unsupported attachment type: {name}",
"typeNotAllowed": "This app does not allow uploading this attachment type: {type}",
"tooLarge": "Attachment too large (max {limit}MB): {name}",
"typeLimitReached": "Limit reached for this attachment type ({limit})",
"httpOnly": "Only http/https URLs are supported",
"urlNotSupported": "This app does not support URL attachments",
"unsupportedUrlType": "Unsupported URL attachment type",
"urlTypeNotAllowed": "This app does not allow this URL attachment type: {type}",
"processFailed": "Failed to process attachment: {message}{suffix}"
},
"leave": {
"types": {
"401": "Maternity leave (days)",
"402": "Paternity leave (days)",
"403": "Marriage leave (days)",
"405": "Hospital sick leave (hours)",
"406": "Work injury leave (days)",
"408": "Parental leave (hours)",
"005": "Personal leave (hours)",
"006": "Sick leave (hours)",
"007": "Bereavement leave (days)",
"010": "Annual leave (days)",
"021": "Business trip (hours)",
"025": "Comp time (hours)",
"ZZ01": "Home leave (hours)",
"ZZ04": "Personal leave (manager hours)",
"ZZ05": "Sick leave (manager hours)",
"ZZ07": "Bereavement leave (manager days)",
"ZZ08": "Maternity leave (manager days)",
"ZZ09": "Paternity leave (manager days)",
"ZZ10": "Marriage leave (manager days)",
"035": "Other leave (hours)"
}
},
"shippingNoticeMenu": {
"upload": {
"label": "Select inventory file",
"message": "I want to upload inventory Excel"
},
"paste": {
"label": "Paste inventory",
"message": "I paste a small inventory table"
},
"retry_rpa": {
"label": "Fetch inventory again",
"message": "Fetch inventory again"
},
"confirm": {
"label": "Confirm",
"message": "Confirm"
},
"reparse": {
"label": "Re-parse",
"message": "Re-parse"
},
"reject": {
"label": "Reject",
"message": "Reject"
}
},
"shippingNoticeTurn": {
"createBatchSingle": "Upload shipping notice: {fileName}",
"createBatchMulti": "Upload {count} shipping notices",
"attachmentFallback": "attachment",
"confirmBatchSingle": "Confirm create: {intakeNo}",
"confirmBatchMulti": "Confirm create: {count} shipping notices",
"uploadInventory": "Upload inventory file: {fileName}",
"replaceNotice": "Re-upload shipping notice: {fileName}",
"applyMapping": "Apply inventory column mapping (task {taskId})",
"withTaskId": "{text}\nTask ID: {taskId}"
},
"shippingNoticeToast": {
"noBatchToSwitch": "No batch available to switch",
"batchOnlyOneTask": "Current batch has only 1 task; no switch needed",
"taskNotFoundToSwitch": "Target task not found",
"alreadyLastTask": "Already on the last task",
"alreadyFirstTask": "Already on the first task",
"alreadyOnCurrentTask": "Already on the current task",
"switchTaskFailed": "Failed to switch task",
"fileProcessFailed": "File processing failed",
"localAttachmentOnly": "Only local attachments can trigger the auto flow",
"oneFileOnlyAutoFirst": "Only one file is supported at a time; processing the first file",
"missingTaskIdUploadInventory": "Task ID not found. Upload an inventory file first",
"missingTaskIdPreviousSteps": "Task ID not found. Complete the previous steps first",
"missingTaskIdParseMatch": "Task ID not found. Complete parsing and inventory matching first",
"downloadExcelFailed": "Failed to download Excel",
"autoCreateTaskFailed": "Failed to auto-create shipping task",
"schemaPreviewMissing": "Header preview not found. Re-upload the inventory file, then click “Edit mapping”",
"mappingFormIntro": "Use the dropdowns to map inventory columns (must pick from headers).",
"selectSkuAndQty": "Select SKU column and available quantity column first",
"applyMappingFailed": "Failed to apply mapping",
"updateParseFailed": "Failed to update parse result",
"addLineFailed": "Failed to add order line",
"deleteLineFailed": "Failed to delete order line",
"auditCommentHeaderEdit": "Chat order table revision",
"auditCommentLineAdd": "Chat order table add line",
"auditCommentLineDelete": "Chat order table delete line",
"manualUploadedDefault": "I have finished uploading in the freight system",
"markManualUploadFailed": "Failed to mark manual upload",
"actionFallback": "Action",
"operationFailed": "Operation failed"
},
"shippingNoticeSanitize": {
"retriggeredInventory": "Inventory fetch retriggered.",
"triggeredInventory": "Inventory fetch triggered.",
"inventoryInProgress": "Inventory fetch in progress.",
"manualRetry": "manual retry",
"backToAlignConfirm": "Back to inventory field confirmation. Check the detected column names, then continue; edit the mapping if needed.",
"checkColumnsContinue": "Check the detected inventory column names, then continue; edit the mapping if needed.",
"confirmHeadersFromSample": "Confirm field mapping from inventory headers and sample rows.",
"uploadInCurrentChat": "upload in the current chat",
"currentChat": "current chat",
"toCurrentChatPrefix": "to the current chat",
"currentSystem": "current system",
"taskIdLabel": "Task ID: ",
"taskIdWord": "Task ID",
"createTask": "create task",
"getTaskStatus": "get task status",
"parseNotice": "parse shipping notice",
"submitDecision": "submit decision",
"matchInventory": "match inventory",
"generateExcel": "generate shipping Excel",
"uploadFreight": "upload to freight system",
"applyInventoryMapping": "apply inventory field mapping",
"getSchemaPreview": "read inventory header preview",
"schemaPreview": "inventory header preview",
"mapJson": "field mapping",
"sampleRows": "sample rows",
"retryRpa": "fetch inventory again",
"retryUpload": "retry freight upload",
"structured": "structured content",
"rawText": "notice text"
},
"shippingNoticeDecisionFormat": {
"headerAtRow": "Headers on row {row}: {headers}",
"currentHeaders": "Current headers: {headers}",
"suggestedMapping": "Suggested column mapping:",
"adjustHint": "To adjust, say which column to change (e.g. available_qty → Qty Available).",
"reuploadHint": "Or click “Select inventory file” to re-upload.",
"nextMatch": "Next: match inventory to shipping demand.",
"reuploadOrPaste": "Please re-upload or paste inventory Excel.",
"taskIdLine": "Task ID: {taskId}"
},
"shippingNoticeFieldAlignment": {
"unrecognized": "(unrecognized)",
"unrecognizedOptional": "(unrecognized / optional)",
"matchRule": "Match rule: {rule}",
"tableTitle": "Field alignment:",
"tableHeaderSystem": "System field",
"tableHeaderInventory": "Inventory column",
"hints": "Notes:"
}
}