insert.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. const insertTrans = {
  2. import: 'Import File',
  3. targetTip: 'Where to put your data',
  4. file: 'File',
  5. uploaderLabel: 'Select a .csv or .json file',
  6. fileNamePlaceHolder: 'No file has been selected',
  7. sample: 'CSV Sample',
  8. noteTitle: 'Note',
  9. notes: [
  10. `CSV or JSON file is supported`,
  11. `Ensure data column names match field label names in Schema.`,
  12. `Data should be <150MB and <100,000 rows for proper import.`,
  13. `"Import File" only appends new records; it doesn't update existing ones.`,
  14. ],
  15. overSizeWarning: 'File data size should less than {{size}}MB',
  16. isContainFieldNames: 'First row contains field names?',
  17. uploadFileDisableTooltip: 'Please select collection before uploading',
  18. uploadFieldNamesLenWarning:
  19. 'Uploaded data column count is not equal to schema count',
  20. uploadAutoIdFieldWarning:
  21. 'AutoId field ({{fieldName}}) does not require data',
  22. previewTipData: 'Data Preview(Top 4 rows shown)',
  23. previewTipAction: '*Change header cell selector value to edit field name',
  24. requiredFieldName: 'Field Name*',
  25. statusLoading: 'Your data is importing now...It may take few minutes',
  26. statusLoadingTip: 'Please wait patiently, thank you',
  27. statusSuccess: 'Import File Successfully!',
  28. statusError: 'Import File Failed!',
  29. importSampleData: 'Insert sample data into {{collection}}',
  30. sampleDataSize: 'Choose or enter sample data size, max 10000',
  31. importSampleDataDesc: `This function inserts randomly generated data matching the collection schema. Useful for testing and development. Click the download button to get the data.`,
  32. downloadSampleDataCSV: `Download Sample CSV Data`,
  33. downloadSampleDataJSON: `Download Sample JSON Data`,
  34. };
  35. export default insertTrans;