mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-31 22:11:28 +00:00
This pull request removes the `@uppy/status-bar` plugin and integrates it directly into the `@uppy/dashboard` plugin. ### Breakdown of the merge - The `StatusBar` class was refactored from a `UIPlugin` into a Preact Class component. - The `locale` strings from status-bar were merged into dashboard's locale file. - The Dashboard plugin now integrates the `StatusBar` component directly, controlling its visibility and passing down all props ( i.e. options that were specific to StatusBar (like showProgressDetails). - The standalone StatusBar wrappers for React , Vue , svelte , Angular were removed. - every reference to the @uppy/status-bar package from the monorepo (including in package.json and tsconfig.json files). - fixed failing tests and removed redundant tests. --------- Co-authored-by: Mikael Finstad <finstaden@gmail.com> Co-authored-by: Merlijn Vos <merlijn@soverin.net>
139 lines
6.4 KiB
TypeScript
139 lines
6.4 KiB
TypeScript
export default {
|
|
strings: {
|
|
// When `inline: false`, used as the screen reader label for the button that closes the modal.
|
|
closeModal: 'Close Modal',
|
|
// Used as the screen reader label for the plus (+) button that shows the “Add more files” screen
|
|
addMoreFiles: 'Add more files',
|
|
addingMoreFiles: 'Adding more files',
|
|
// Used as the header for import panels, e.g., “Import from Google Drive”.
|
|
importFrom: 'Import from %{name}',
|
|
// When `inline: false`, used as the screen reader label for the dashboard modal.
|
|
dashboardWindowTitle: 'Uppy Dashboard Window (Press escape to close)',
|
|
// When `inline: true`, used as the screen reader label for the dashboard area.
|
|
dashboardTitle: 'Uppy Dashboard',
|
|
// Shown in the Informer when a link to a file was copied to the clipboard.
|
|
copyLinkToClipboardSuccess: 'Link copied to clipboard.',
|
|
// Used when a link cannot be copied automatically — the user has to select the text from the
|
|
// input element below this string.
|
|
copyLinkToClipboardFallback: 'Copy the URL below',
|
|
// Used as the hover title and screen reader label for buttons that copy a file link.
|
|
copyLink: 'Copy link',
|
|
back: 'Back',
|
|
// Used as the screen reader label for buttons that remove a file.
|
|
removeFile: 'Remove file',
|
|
// Used as the screen reader label for buttons that open the metadata editor panel for a file.
|
|
editFile: 'Edit file',
|
|
editImage: 'Edit image',
|
|
// Shown in the panel header for the metadata editor. Rendered as “Editing image.png”.
|
|
editing: 'Editing %{file}',
|
|
// Shown on the main upload screen when an upload error occurs
|
|
error: 'Error',
|
|
// Used as the screen reader label for the button that saves metadata edits and returns to the
|
|
// file list view.
|
|
finishEditingFile: 'Finish editing file',
|
|
saveChanges: 'Save changes',
|
|
// Used as the label for the tab button that opens the system file selection dialog.
|
|
myDevice: 'My Device',
|
|
dropHint: 'Drop your files here',
|
|
// Used as the hover text and screen reader label for file progress indicators when
|
|
// they have been fully uploaded.
|
|
uploadComplete: 'Upload complete',
|
|
uploadPaused: 'Upload paused',
|
|
// Used as the hover text and screen reader label for the buttons to resume paused uploads.
|
|
resumeUpload: 'Resume upload',
|
|
// Used as the hover text and screen reader label for the buttons to pause uploads.
|
|
pauseUpload: 'Pause upload',
|
|
// Used as the hover text and screen reader label for the buttons to retry failed uploads.
|
|
retryUpload: 'Retry upload',
|
|
// Used as the hover text and screen reader label for the buttons to cancel uploads.
|
|
cancelUpload: 'Cancel upload',
|
|
// Used in a title, how many files are currently selected
|
|
xFilesSelected: {
|
|
0: '%{smart_count} file selected',
|
|
1: '%{smart_count} files selected',
|
|
},
|
|
uploadingXFiles: {
|
|
0: 'Uploading %{smart_count} file',
|
|
1: 'Uploading %{smart_count} files',
|
|
},
|
|
processingXFiles: {
|
|
0: 'Processing %{smart_count} file',
|
|
1: 'Processing %{smart_count} files',
|
|
},
|
|
// The "powered by Uppy" link at the bottom of the Dashboard.
|
|
poweredBy: 'Powered by %{uppy}',
|
|
addMore: 'Add more',
|
|
editFileWithFilename: 'Edit file %{file}',
|
|
save: 'Save',
|
|
cancel: 'Cancel',
|
|
dropPasteFiles: 'Drop files here or %{browseFiles}',
|
|
dropPasteFolders: 'Drop files here or %{browseFolders}',
|
|
dropPasteBoth: 'Drop files here, %{browseFiles} or %{browseFolders}',
|
|
dropPasteImportFiles: 'Drop files here, %{browseFiles} or import from:',
|
|
dropPasteImportFolders: 'Drop files here, %{browseFolders} or import from:',
|
|
dropPasteImportBoth:
|
|
'Drop files here, %{browseFiles}, %{browseFolders} or import from:',
|
|
importFiles: 'Import files from:',
|
|
browseFiles: 'browse files',
|
|
browseFolders: 'browse folders',
|
|
recoveredXFiles: {
|
|
0: 'We could not fully recover 1 file. Please re-select it and resume the upload.',
|
|
1: 'We could not fully recover %{smart_count} files. Please re-select them and resume the upload.',
|
|
},
|
|
recoveredAllFiles: 'We restored all files. You can now resume the upload.',
|
|
sessionRestored: 'Session restored',
|
|
reSelect: 'Re-select',
|
|
missingRequiredMetaFields: {
|
|
0: 'Missing required meta field: %{fields}.',
|
|
1: 'Missing required meta fields: %{fields}.',
|
|
},
|
|
// Used for native device camera buttons on mobile
|
|
takePictureBtn: 'Take Picture',
|
|
recordVideoBtn: 'Record Video',
|
|
|
|
// Strings for StatusBar
|
|
// Shown in the status bar while files are being uploaded.
|
|
uploading: 'Uploading',
|
|
// Shown in the status bar once all files have been uploaded.
|
|
complete: 'Complete',
|
|
// Shown in the status bar if an upload failed.
|
|
uploadFailed: 'Upload failed',
|
|
// Shown in the status bar while the upload is paused.
|
|
paused: 'Paused',
|
|
// Used as the label for the button that retries an upload.
|
|
retry: 'Retry',
|
|
// Used as the label for the button that pauses an upload.
|
|
pause: 'Pause',
|
|
// Used as the label for the button that resumes an upload.
|
|
resume: 'Resume',
|
|
// Used as the label for the button that resets the upload state after an upload
|
|
done: 'Done',
|
|
// When `hideProgressDetails` is set to false, shows the number of files that have been fully uploaded so far.
|
|
filesUploadedOfTotal: {
|
|
0: '%{complete} of %{smart_count} file uploaded',
|
|
1: '%{complete} of %{smart_count} files uploaded',
|
|
},
|
|
// When `hideProgressDetails` is set to false, shows the amount of bytes that have been uploaded so far.
|
|
dataUploadedOfTotal: '%{complete} of %{total}',
|
|
dataUploadedOfUnknown: '%{complete} of unknown',
|
|
// When `hideProgressDetails` is set to false, shows an estimation of how long the upload will take to complete.
|
|
xTimeLeft: '%{time} left',
|
|
// Used as the label for the button that starts an upload.
|
|
uploadXFiles: {
|
|
0: 'Upload %{smart_count} file',
|
|
1: 'Upload %{smart_count} files',
|
|
},
|
|
// Used as the label for the button that starts an upload, if another upload has been started in the past
|
|
// and new files were added later.
|
|
uploadXNewFiles: {
|
|
0: 'Upload +%{smart_count} file',
|
|
1: 'Upload +%{smart_count} files',
|
|
},
|
|
upload: 'Upload',
|
|
xMoreFilesAdded: {
|
|
0: '%{smart_count} more file added',
|
|
1: '%{smart_count} more files added',
|
|
},
|
|
showErrorDetails: 'Show error details',
|
|
},
|
|
}
|