locale.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import type { Locale } from '@uppy/utils/lib/Translator'
  2. export default {
  3. strings: {
  4. // Shown in the status bar while files are being uploaded.
  5. uploading: 'Uploading',
  6. // Shown in the status bar once all files have been uploaded.
  7. complete: 'Complete',
  8. // Shown in the status bar if an upload failed.
  9. uploadFailed: 'Upload failed',
  10. // Shown in the status bar while the upload is paused.
  11. paused: 'Paused',
  12. // Used as the label for the button that retries an upload.
  13. retry: 'Retry',
  14. // Used as the label for the button that cancels an upload.
  15. cancel: 'Cancel',
  16. // Used as the label for the button that pauses an upload.
  17. pause: 'Pause',
  18. // Used as the label for the button that resumes an upload.
  19. resume: 'Resume',
  20. // Used as the label for the button that resets the upload state after an upload
  21. done: 'Done',
  22. // When `showProgressDetails` is set, shows the number of files that have been fully uploaded so far.
  23. filesUploadedOfTotal: {
  24. 0: '%{complete} of %{smart_count} file uploaded',
  25. 1: '%{complete} of %{smart_count} files uploaded',
  26. },
  27. // When `showProgressDetails` is set, shows the amount of bytes that have been uploaded so far.
  28. dataUploadedOfTotal: '%{complete} of %{total}',
  29. // When `showProgressDetails` is set, shows an estimation of how long the upload will take to complete.
  30. xTimeLeft: '%{time} left',
  31. // Used as the label for the button that starts an upload.
  32. uploadXFiles: {
  33. 0: 'Upload %{smart_count} file',
  34. 1: 'Upload %{smart_count} files',
  35. },
  36. // Used as the label for the button that starts an upload, if another upload has been started in the past
  37. // and new files were added later.
  38. uploadXNewFiles: {
  39. 0: 'Upload +%{smart_count} file',
  40. 1: 'Upload +%{smart_count} files',
  41. },
  42. upload: 'Upload',
  43. retryUpload: 'Retry upload',
  44. xMoreFilesAdded: {
  45. 0: '%{smart_count} more file added',
  46. 1: '%{smart_count} more files added',
  47. },
  48. showErrorDetails: 'Show error details',
  49. } as Locale<0 | 1>['strings'],
  50. } as any as Locale