feat(knowledge): add FAQ Excel import export

This commit is contained in:
mlogclub
2026-06-01 13:57:49 +08:00
parent d8692b45cd
commit 8933e963f5
15 changed files with 1133 additions and 363 deletions
+23 -15
View File
@@ -1894,32 +1894,40 @@
"answer": "Answer",
"answerPlaceholder": "Enter the FAQ answer",
"similarQuestionsPlaceholder": "One similar question per line",
"fileEmpty": "The file is empty.",
"missingFAQColumns": "The import template must include question and answer columns.",
"skipRowMissingFAQ": "Row {row} is missing a question or answer and was skipped.",
"importNoRows": "No FAQ rows to import.",
"parsedFAQRows": "{count} FAQ rows parsed.",
"parseImportFailed": "Could not parse the import file.",
"importRowFailed": "Row {row}: {message}",
"importFailed": "Import failed.",
"importSuccess": "{count} FAQs imported.",
"importSomeFailed": "{count} FAQs failed to import.",
"importFAQTitle": "Import FAQ",
"importFAQDescription": "Upload a CSV file to import FAQs in bulk. Required columns: question and answer. Separate similarQuestions with | or line breaks.",
"importFAQDescription": "Upload an Excel file to import FAQs in bulk. Required columns: primary question and answer. Put one similar question per line in the same cell.",
"downloadTemplate": "Download Template",
"downloadTemplateFailed": "Could not download the template.",
"importing": "Importing...",
"startImport": "Start Import",
"startImportWithCount": "Start Import ({count})",
"importFile": "Import File",
"chooseFile": "Choose File",
"importFileDescription": "Supports UTF-8 CSV or tab-delimited text files.",
"importFileDescription": "Only .xlsx files are supported.",
"currentFile": "Current file: {name}",
"importHint": "Import Notes",
"importPreview": "Import Preview",
"rowNumber": "Row {row}",
"similarQuestionShort": "Similar: {value}",
"importXlsxHint": "The template columns are primary question, answer, similar questions, and remark. Put one similar question per line inside the cell.",
"importXlsxOnly": "Only .xlsx files are supported.",
"importMode": "Import Mode",
"selectImportMode": "Select import mode",
"searchImportMode": "Search import mode",
"emptyImportMode": "No import modes found",
"importModeAppend": "Append Import",
"importModeOverwrite": "Overwrite Import",
"importModeAppendDescription": "Only creates primary questions that do not already exist. Existing primary questions are skipped.",
"importModeOverwriteDescription": "Matches by primary question and updates existing FAQs. Missing primary questions are created.",
"importResult": "Import Result",
"importTotal": "Total",
"importCreated": "Created",
"importUpdated": "Updated",
"importSkipped": "Skipped",
"importFailedCount": "Failed",
"importFAQResultToast": "Created {created}, updated {updated}, skipped {skipped}, failed {failed}",
"exportFAQ": "Export FAQ",
"exportFAQSuccess": "FAQ export download started.",
"exportFAQFailed": "Could not export FAQs.",
"none": "None",
"previewAfterUpload": "Upload a file to preview the first 5 FAQs.",
"allChannels": "All channels",
"channelIM": "Support chat",
"channelAgentAssist": "Agent assist",