Quellcode durchsuchen

locales: remove es_GL that was kept for backwards-compat (#2943)

* remove es_GL for good — it was kept for backwards-compat

* remove legacy
Artur Paikin vor 3 Jahren
Ursprung
Commit
e5061b1194

+ 0 - 3
bin/locale-packs.js

@@ -231,9 +231,6 @@ function test () {
   const localePackagePath = path.join(__dirname, '..', 'packages', '@uppy', 'locales', 'src', '*.js')
   glob.sync(localePackagePath).forEach((localePath) => {
     const localeName = path.basename(localePath, '.js')
-    // we renamed the es_GL → gl_ES locale, and kept the old name
-    // for backwards-compat, see https://github.com/transloadit/uppy/pull/1929
-    if (localeName === 'es_GL') return
 
     // Builds array with items like: 'uploadingXFiles'
     // We do not check nested items because different languages may have different amounts of plural forms.

+ 0 - 97
packages/@uppy/locales/legacy/README.md

@@ -1,97 +0,0 @@
-Dear translators!
-
-We tried to salvage your locales from when we had to remove them [10 months ago](https://github.com/transloadit/uppy/tree/10b19ea79b1fb728d97af89e74edca9d03208a75/locales). Unfortunately, a lot has changed since them, which made them outdated. Here are the issues we found, comparing them to en_US (which is the leading locale).
-
-Any help to restore these locales is greatly appreciated <3
-
-- [ ] nb_NO locale has missing string: 'addMoreFiles' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'addingMoreFiles' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'allowAccessDescription' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'allowAccessTitle' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'back' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'cancel' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'cancelUpload' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'chooseFiles' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'companionAuthError' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'companionError' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'complete' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'connectedToInternet' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'copyLink' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'creatingAssembly' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'creatingAssemblyFailed' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'dataUploadedOfTotal' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'dropHereOr' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'edit' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'editFile' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'editing' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'emptyFolderAdded' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'encoding' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'enterCorrectUrl' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'enterUrlToImport' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'exceedsSize' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'failedToFetch' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'failedToUpload' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'fileSource' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'filesUploadedOfTotal.0' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'filesUploadedOfTotal.1' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'filesUploadedOfTotal.2' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'filter' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'finishEditingFile' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'folderAdded.0' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'folderAdded.1' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'folderAdded.2' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'import' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'link' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'logOut' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'myDevice' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'noFilesFound' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'noInternetConnection' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'pause' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'pauseUpload' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'paused' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'preparingUpload' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'processingXFiles.0' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'processingXFiles.1' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'processingXFiles.2' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'removeFile' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'resetFilter' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'resume' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'resumeUpload' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'retry' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'retryUpload' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'saveChanges' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'selectXFiles.0' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'selectXFiles.1' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'selectXFiles.2' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'smile' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'startRecording' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'stopRecording' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'takePicture' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'timedOut' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadComplete' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadFailed' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadPaused' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadXFiles.0' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadXFiles.1' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadXFiles.2' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadXNewFiles.0' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadXNewFiles.1' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadXNewFiles.2' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploading' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadingXFiles.0' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadingXFiles.1' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'uploadingXFiles.2' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'xFilesSelected.0' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'xFilesSelected.1' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'xFilesSelected.2' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'xMoreFilesAdded.0' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'xMoreFilesAdded.1' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'xMoreFilesAdded.2' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'xTimeLeft' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'youCanOnlyUploadFileTypes' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'youCanOnlyUploadX.0' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'youCanOnlyUploadX.1' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'youCanOnlyUploadX.2' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'youHaveToAtLeastSelectX.0' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'youHaveToAtLeastSelectX.1' that is present in en_US.
-- [ ] nb_NO locale has missing string: 'youHaveToAtLeastSelectX.2' that is present in en_US.

+ 0 - 54
packages/@uppy/locales/legacy/nb_NO.js

@@ -1,54 +0,0 @@
-/* eslint camelcase: 0 */
-
-const nb_NO = {}
-
-nb_NO.strings = {
-  chooseFile: 'Velg en fil',
-  youHaveChosen: 'Du har valgt: %{fileName}',
-  orDragDrop: 'eller slipp den her',
-  filesChosen: {
-    0: '%{smart_count} fil valgt',
-    1: '%{smart_count} filer valgt',
-  },
-  filesUploaded: {
-    0: '%{smart_count} fil lastet opp',
-    1: '%{smart_count} filer lastet opp',
-  },
-  files: {
-    0: '%{smart_count} fil',
-    1: '%{smart_count} filer',
-  },
-  uploadFiles: {
-    0: 'Lastet opp %{smart_count} fil',
-    1: 'Lastet opp %{smart_count} filer',
-  },
-  selectToUpload: 'Velg filer å laste opp',
-  closeModal: 'Lukk dialogboksen',
-  upload: 'Last opp',
-  importFrom: 'Importer filer fra',
-  dashboardWindowTitle: 'Uppy Dashboard-vindu (Trykk escape for å lukke)',
-  dashboardTitle: 'Uppy Dashboard',
-  copyLinkToClipboardSuccess: 'Lenken ble kopiert til utklippstavla.',
-  copyLinkToClipboardFallback: 'Kopier URL-en under',
-  done: 'Ferdig',
-  localDisk: 'Lokal disk',
-  dropPasteImport: 'Du kan slippe eller lime inn filer her, importere fra en en av plasseringene ovenfor eller',
-  dropPaste: 'Du kan slippe eller lime inn filer her eller',
-  browse: 'velge dem',
-  fileProgress: 'Filstatus: Opplastingshastighet og ETA',
-  numberOfSelectedFiles: 'Antall valgte filer',
-  uploadAllNewFiles: 'Last opp alle nye filer',
-}
-
-nb_NO.pluralize = function (n) {
-  if (n === 1) {
-    return 0
-  }
-  return 1
-}
-
-if (typeof window !== 'undefined' && typeof window.Uppy !== 'undefined') {
-  window.Uppy.locales.nb_NO = nb_NO
-}
-
-module.exports = nb_NO

+ 0 - 1
packages/@uppy/locales/src/es_GL.js

@@ -1 +0,0 @@
-module.exports = require('./gl_ES')

+ 0 - 3
website/inject.js

@@ -208,9 +208,6 @@ function injectLocaleList () {
 
   glob.sync(localePackagePath).forEach((localePath) => {
     const localeName = path.basename(localePath, '.js')
-    // we renamed the es_GL → gl_ES locale, and kept the old name
-    // for backwards-compat, see https://github.com/transloadit/uppy/pull/1929
-    if (localeName === 'es_GL') return
     const [languageCode, regionCode, variant] = localeName.split(/[-_]/)
 
     const languageName = languageDisplayNames.of(languageCode)