UNPKG

subhasmitalmg-react-spreadsheet-import

Version:

React spreadsheet import for xlsx and csv files with column matching and validation steps

90 lines (86 loc) 3.4 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const translations = { uploadStep: { title: "Upload file", manifestTitle: "Data that we expect:", manifestDescription: "(You will have a chance to rename or remove columns in next steps)", downloaddbdata: "Download sample", maxRecordsExceeded: (maxRecords) => `Too many records. Up to ${maxRecords} allowed`, dropzone: { title: "Upload .xlsx, .xls or .csv file", errorToastDescription: "upload rejected", activeDropzoneTitle: "Drop file here...", buttonTitle: "Select file", loadingTitle: "Processing...", }, selectSheet: { title: "Select the sheet to use", nextButtonTitle: "Next", }, }, selectHeaderStep: { title: "Select header row", nextButtonTitle: "Next", }, matchColumnsStep: { title: "Match Columns", nextButtonTitle: "Next", userTableTitle: "Your table", templateTitle: "Will become", selectPlaceholder: "Select column...", ignoredColumnText: "Column ignored", subSelectPlaceholder: "Select...", matchDropdownTitle: "Match", unmatched: "Unmatched", duplicateColumnWarningTitle: "Another column unselected", duplicateColumnWarningDescription: "Columns cannot duplicate", }, validationStep: { title: "Validate data", nextButtonTitle: "Confirm", noRowsMessage: "No data found", noRowsMessageWhenFiltered: "No data containing errors", discardButtonTitle: "Discard selected rows", filterSwitchTitle: "Show only rows with errors", downloadButtonTitle: "Download", noOfErrorRows: "Invalid lines", //SPO-3976 show no of error }, alerts: { confirmClose: { headerTitle: "Exit import flow", bodyText: "Are you sure? Your current information will not be saved.", cancelButtonTitle: "Cancel", exitButtonTitle: "Exit flow", }, submitIncomplete: { headerTitle: "Errors detected", bodyText: "There are still some rows that contain errors. Rows with errors will be ignored when submitting.", bodyTextSubmitForbidden: "There are still some rows containing errors.", cancelButtonTitle: "Cancel", finishButtonTitle: "Submit", }, unmatchedRequiredFields: { headerTitle: "Not all columns matched", bodyText: "There are required columns that are not matched or ignored. Do you want to continue?", listTitle: "Columns not matched:", cancelButtonTitle: "Cancel", continueButtonTitle: "Continue", }, //SPO-4200 submitSuccess: { headerTitle: "Successful", successMessage: "File submission is done, check the result in History page.", closeButtonTitle: "Close", }, noValidDataFound: { headerTitle: "Unable to Submit", successMessage: "No Valid Data Found.", }, //SPO-4200 toast: { error: "Error", }, }, }; exports.translations = translations;