diff --git a/package.json b/package.json index 3882f4df8c..b2281ab14e 100644 --- a/package.json +++ b/package.json @@ -134,7 +134,7 @@ "build:angular": "yarn workspace @uppy/angular build:release", "build:js": "npm-run-all build:lib build:companion build:locale-pack build:svelte build:angular build:bundle", "build:lib": "yarn node ./bin/build-lib.js", - "build:locale-pack": "yarn workspace locale-pack build && yarn workspace locale-pack test unused", + "build:locale-pack": "yarn workspace locale-pack build && eslint packages/@uppy/locales/src/en_US.js --fix && yarn workspace locale-pack test unused", "build": "npm-run-all --parallel build:js build:css --serial size", "contributors:save": "yarn node ./bin/update-contributors.mjs", "dev:browsersync": "yarn workspace @uppy-example/dev start", diff --git a/packages/@uppy/locales/src/en_US.js b/packages/@uppy/locales/src/en_US.js index 2eb1a542aa..b11d750227 100644 --- a/packages/@uppy/locales/src/en_US.js +++ b/packages/@uppy/locales/src/en_US.js @@ -1,10 +1,9 @@ -/* eslint-disable comma-dangle */ const en_US = {} en_US.strings = { addBulkFilesFailed: { '0': 'Failed to add %{smart_count} file due to an internal error', - '1': 'Failed to add %{smart_count} files due to internal errors' + '1': 'Failed to add %{smart_count} files due to internal errors', }, addingMoreFiles: 'Adding more files', addMore: 'Add more', @@ -62,14 +61,14 @@ en_US.strings = { failedToUpload: 'Failed to upload %{file}', filesUploadedOfTotal: { '0': '%{complete} of %{smart_count} file uploaded', - '1': '%{complete} of %{smart_count} files uploaded' + '1': '%{complete} of %{smart_count} files uploaded', }, filter: 'Filter', finishEditingFile: 'Finish editing file', flipHorizontal: 'Flip horizontal', folderAdded: { '0': 'Added %{smart_count} file from %{folder}', - '1': 'Added %{smart_count} files from %{folder}' + '1': 'Added %{smart_count} files from %{folder}', }, folderAlreadyAdded: 'The folder "%{folder}" was already added', generatingThumbnails: 'Generating thumbnails...', @@ -104,7 +103,7 @@ en_US.strings = { poweredBy: 'Powered by %{uppy}', processingXFiles: { '0': 'Processing %{smart_count} file', - '1': 'Processing %{smart_count} files' + '1': 'Processing %{smart_count} files', }, recording: 'Recording', recordingLength: 'Recording length %{recording_length}', @@ -112,7 +111,7 @@ en_US.strings = { recoveredAllFiles: 'We restored all files. You can now resume the upload.', 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.' + '1': 'We could not fully recover %{smart_count} files. Please re-select them and resume the upload.', }, removeFile: 'Remove file', reSelect: 'Re-select', @@ -128,7 +127,7 @@ en_US.strings = { searchImages: 'Search for images', selectX: { '0': 'Select %{smart_count}', - '1': 'Select %{smart_count}' + '1': 'Select %{smart_count}', }, sessionRestored: 'Session restored', signInWithGoogle: 'Sign in with Google', @@ -148,37 +147,37 @@ en_US.strings = { uploading: 'Uploading', uploadingXFiles: { '0': 'Uploading %{smart_count} file', - '1': 'Uploading %{smart_count} files' + '1': 'Uploading %{smart_count} files', }, uploadPaused: 'Upload paused', uploadXFiles: { '0': 'Upload %{smart_count} file', - '1': 'Upload %{smart_count} files' + '1': 'Upload %{smart_count} files', }, uploadXNewFiles: { '0': 'Upload +%{smart_count} file', - '1': 'Upload +%{smart_count} files' + '1': 'Upload +%{smart_count} files', }, xFilesSelected: { '0': '%{smart_count} file selected', - '1': '%{smart_count} files selected' + '1': '%{smart_count} files selected', }, xMoreFilesAdded: { '0': '%{smart_count} more file added', - '1': '%{smart_count} more files added' + '1': '%{smart_count} more files added', }, xTimeLeft: '%{time} left', youCanOnlyUploadFileTypes: 'You can only upload: %{types}', youCanOnlyUploadX: { '0': 'You can only upload %{smart_count} file', - '1': 'You can only upload %{smart_count} files' + '1': 'You can only upload %{smart_count} files', }, youHaveToAtLeastSelectX: { '0': 'You have to select at least %{smart_count} file', - '1': 'You have to select at least %{smart_count} files' + '1': 'You have to select at least %{smart_count} files', }, zoomIn: 'Zoom in', - zoomOut: 'Zoom out' + zoomOut: 'Zoom out', } en_US.pluralize = function pluralize (count) { diff --git a/packages/@uppy/locales/template.js b/packages/@uppy/locales/template.js index 7bc90d4f8b..d4d413adc2 100644 --- a/packages/@uppy/locales/template.js +++ b/packages/@uppy/locales/template.js @@ -1,4 +1,3 @@ -/* eslint-disable comma-dangle */ const en_US = {} en_US.strings = {}