-
Notifications
You must be signed in to change notification settings - Fork 2.1k
@uppy/core: update file type restriction error message to include filename #5787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
benjiroArthur
wants to merge
4
commits into
transloadit:main
Choose a base branch
from
benjiroArthur:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ename, update locale files to reflect this change
Diff output filesdiff --git a/packages/@uppy/core/lib/Restricter.js b/packages/@uppy/core/lib/Restricter.js
index b63360c..a5272e0 100644
--- a/packages/@uppy/core/lib/Restricter.js
+++ b/packages/@uppy/core/lib/Restricter.js
@@ -85,9 +85,11 @@ class Restricter {
return false;
});
if (!isCorrectFileType) {
+ var _file$name;
const allowedFileTypesString = allowedFileTypes.join(", ");
throw new RestrictionError(
this.getI18n()("youCanOnlyUploadFileTypes", {
+ file: (_file$name = file.name) != null ? _file$name : this.getI18n()("unnamed"),
types: allowedFileTypesString,
}),
{
@@ -97,11 +99,11 @@ class Restricter {
}
}
if (maxFileSize && file.size != null && file.size > maxFileSize) {
- var _file$name;
+ var _file$name2;
throw new RestrictionError(
this.getI18n()("exceedsSize", {
size: prettierBytes(maxFileSize),
- file: (_file$name = file.name) != null ? _file$name : this.getI18n()("unnamed"),
+ file: (_file$name2 = file.name) != null ? _file$name2 : this.getI18n()("unnamed"),
}),
{
file,
@@ -138,10 +140,10 @@ class Restricter {
}
}
getMissingRequiredMetaFields(file) {
- var _file$name2;
+ var _file$name3;
const error = new RestrictionError(
this.getI18n()("missingRequiredMetaFieldOnFile", {
- fileName: (_file$name2 = file.name) != null ? _file$name2 : this.getI18n()("unnamed"),
+ fileName: (_file$name3 = file.name) != null ? _file$name3 : this.getI18n()("unnamed"),
}),
);
const {
diff --git a/packages/@uppy/core/lib/locale.js b/packages/@uppy/core/lib/locale.js
index 6ac4428..d209e62 100644
--- a/packages/@uppy/core/lib/locale.js
+++ b/packages/@uppy/core/lib/locale.js
@@ -17,7 +17,7 @@ export default {
missingRequiredMetaField: "Missing required meta fields",
missingRequiredMetaFieldOnFile: "Missing required meta fields in %{fileName}",
inferiorSize: "This file is smaller than the allowed size of %{size}",
- youCanOnlyUploadFileTypes: "You can only upload: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} is not supported. You can only upload: %{types}",
noMoreFilesAllowed: "Cannot add more files",
noDuplicates: "Cannot add the duplicate file '%{fileName}', it already exists",
companionError: "Connection with Companion failed",
diff --git a/packages/@uppy/locales/lib/ar_SA.js b/packages/@uppy/locales/lib/ar_SA.js
index e89ad6a..d9a8a07 100644
--- a/packages/@uppy/locales/lib/ar_SA.js
+++ b/packages/@uppy/locales/lib/ar_SA.js
@@ -120,7 +120,7 @@ ar_SA.strings = {
"1": "%{smart_count} ملفات اضافيه جديده",
},
xTimeLeft: "%{time} متبقي",
- youCanOnlyUploadFileTypes: "تستطيع فقط رفع : %{types}",
+ youCanOnlyUploadFileTypes: "%{types} :غير مدعوم. تستطيع فقط رفع %{file}",
youCanOnlyUploadX: {
"0": "تستطيع فقط رفع %{smart_count} الملف",
"1": "تستطيع فقط رفع %{smart_count} ملفات",
diff --git a/packages/@uppy/locales/lib/bg_BG.js b/packages/@uppy/locales/lib/bg_BG.js
index 0a58793..419f6c0 100644
--- a/packages/@uppy/locales/lib/bg_BG.js
+++ b/packages/@uppy/locales/lib/bg_BG.js
@@ -141,7 +141,7 @@ bg_BG.strings = {
"1": "Оше %{smart_count} файла са добавени",
},
xTimeLeft: "Остават %{time}",
- youCanOnlyUploadFileTypes: "Можете да качване само файлове: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} не се поддържа. Можете да качвате само: %{types}",
youCanOnlyUploadX: {
"0": "Може да качвате само %{smart_count} файл",
"1": "Може да качвате само %{smart_count} файлове",
diff --git a/packages/@uppy/locales/lib/ca_ES.js b/packages/@uppy/locales/lib/ca_ES.js
index 8d98d64..7c260f0 100644
--- a/packages/@uppy/locales/lib/ca_ES.js
+++ b/packages/@uppy/locales/lib/ca_ES.js
@@ -200,7 +200,7 @@ ca_ES.strings = {
"1": "S'han afegit %{smart_count} arxius més",
},
xTimeLeft: "%{time} restant",
- youCanOnlyUploadFileTypes: "Només pots pujar: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} no és compatible. Només pots pujar: %{types}",
youCanOnlyUploadX: {
"0": "Només pots pujar %{smart_count} arxiu",
"1": "Només pots pujar %{smart_count} arxius",
diff --git a/packages/@uppy/locales/lib/cs_CZ.js b/packages/@uppy/locales/lib/cs_CZ.js
index c3c79ab..5aeca9c 100644
--- a/packages/@uppy/locales/lib/cs_CZ.js
+++ b/packages/@uppy/locales/lib/cs_CZ.js
@@ -232,7 +232,7 @@ cs_CZ.strings = {
"2": "%{smart_count} dalších souborů přidáno",
},
xTimeLeft: "%{time} zbývá",
- youCanOnlyUploadFileTypes: "Lze nahrát pouze následující typy souborů: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} není podporován. Lze nahrát pouze následující typy souborů: %{types}",
youCanOnlyUploadX: {
"0": "Lze nahrát pouze %{smart_count} soubor",
"1": "Lze nahrát pouze %{smart_count} soubory",
diff --git a/packages/@uppy/locales/lib/da_DK.js b/packages/@uppy/locales/lib/da_DK.js
index c6885ff..946a4e5 100644
--- a/packages/@uppy/locales/lib/da_DK.js
+++ b/packages/@uppy/locales/lib/da_DK.js
@@ -124,7 +124,7 @@ da_DK.strings = {
"1": "%{smart_count} flere filer tilføjet",
},
xTimeLeft: "%{time} tilbage",
- youCanOnlyUploadFileTypes: "Du kan kun uploade: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} er ikke understøttet. Du kan kun uploade: %{types}",
youCanOnlyUploadX: {
"0": "Du kan kun uploade %{smart_count} fil",
"1": "Du kan kun uploade %{smart_count} filer",
diff --git a/packages/@uppy/locales/lib/de_DE.js b/packages/@uppy/locales/lib/de_DE.js
index f7d2d6a..6d0112b 100644
--- a/packages/@uppy/locales/lib/de_DE.js
+++ b/packages/@uppy/locales/lib/de_DE.js
@@ -182,7 +182,7 @@ de_DE.strings = {
"1": "%{smart_count} weitere Dateien hinzugefügt",
},
xTimeLeft: "%{time} verbleibend",
- youCanOnlyUploadFileTypes: "Sie können nur folgende Dateitypen hochladen: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} wird nicht unterstützt. Sie können nur folgende Dateitypen hochladen: %{types}",
youCanOnlyUploadX: {
"0": "Sie können nur eine Datei hochladen",
"1": "Sie können nur %{smart_count} Dateien hochladen",
diff --git a/packages/@uppy/locales/lib/el_GR.js b/packages/@uppy/locales/lib/el_GR.js
index 69a0037..ddcea09 100644
--- a/packages/@uppy/locales/lib/el_GR.js
+++ b/packages/@uppy/locales/lib/el_GR.js
@@ -124,7 +124,7 @@ el_GR.strings = {
"1": "%{smart_count} ακόμα αρχείο προστέθηκε",
},
xTimeLeft: "%{time} απομένουν",
- youCanOnlyUploadFileTypes: "Μπορείτε να ανεβάσετε μόνο: %{types}",
+ youCanOnlyUploadFileTypes: "Το %{file} δεν υποστηρίζεται. Μπορείτε να ανεβάσετε μόνο: %{types}",
youCanOnlyUploadX: {
"0": "Μπορείτε να ανεβάσετε μόνο %{smart_count} αρχεία",
"1": "Μπορείτε να ανεβάσετε μόνο %{smart_count} αρχείο",
diff --git a/packages/@uppy/locales/lib/en_US.js b/packages/@uppy/locales/lib/en_US.js
index c1a214b..cd8acb7 100644
--- a/packages/@uppy/locales/lib/en_US.js
+++ b/packages/@uppy/locales/lib/en_US.js
@@ -215,7 +215,7 @@ en_US.strings = {
"1": "%{smart_count} more files added",
},
xTimeLeft: "%{time} left",
- youCanOnlyUploadFileTypes: "You can only upload: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} is not supported. You can only upload: %{types}",
youCanOnlyUploadX: {
"0": "You can only upload %{smart_count} file",
"1": "You can only upload %{smart_count} files",
diff --git a/packages/@uppy/locales/lib/es_ES.js b/packages/@uppy/locales/lib/es_ES.js
index 9bfea2c..2ae3b11 100644
--- a/packages/@uppy/locales/lib/es_ES.js
+++ b/packages/@uppy/locales/lib/es_ES.js
@@ -200,7 +200,7 @@ es_ES.strings = {
"1": "Se agregaron %{smart_count} archivos más",
},
xTimeLeft: "%{time} restante",
- youCanOnlyUploadFileTypes: "Solo puedes subir: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} no es compatible. Solo puedes subir: %{types}",
youCanOnlyUploadX: {
"0": "Solo puedes subir %{smart_count} archivo",
"1": "Solo puedes subir %{smart_count} archivos",
diff --git a/packages/@uppy/locales/lib/es_MX.js b/packages/@uppy/locales/lib/es_MX.js
index 64f6feb..9ac18f0 100644
--- a/packages/@uppy/locales/lib/es_MX.js
+++ b/packages/@uppy/locales/lib/es_MX.js
@@ -168,7 +168,7 @@ es_MX.strings = {
"1": "Se agregaron %{smart_count} archivos más",
},
xTimeLeft: "%{time} restante",
- youCanOnlyUploadFileTypes: "Solo puede subir: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} no es compatible. Solo puede subir: %{types}",
youCanOnlyUploadX: {
"0": "Solo puede subir %{smart_count} archivo",
"1": "Solo puede subir %{smart_count} archivos",
diff --git a/packages/@uppy/locales/lib/fa_IR.js b/packages/@uppy/locales/lib/fa_IR.js
index 14eb718..7366bad 100644
--- a/packages/@uppy/locales/lib/fa_IR.js
+++ b/packages/@uppy/locales/lib/fa_IR.js
@@ -199,7 +199,7 @@ fa_IR.strings = {
"1": "%{smart_count} فایل دیگر افزوده شد",
},
xTimeLeft: "%{time} left",
- youCanOnlyUploadFileTypes: "فایلهای قابل قبول: %{types}",
+ youCanOnlyUploadFileTypes: "%{types}: پشتیبانی نمیشود. فقط میتوانید این نوع فایلها را بارگذاری کنید %{file}",
youCanOnlyUploadX: {
"0": "فقط میتوانید %{smart_count} فایل انتخاب کنید",
"1": "فقط میتوانید %{smart_count} فایل انتخاب کنید",
diff --git a/packages/@uppy/locales/lib/fi_FI.js b/packages/@uppy/locales/lib/fi_FI.js
index 60c74d5..3287602 100644
--- a/packages/@uppy/locales/lib/fi_FI.js
+++ b/packages/@uppy/locales/lib/fi_FI.js
@@ -124,7 +124,7 @@ fi_FI.strings = {
"1": "%{smart_count} tiedostoa added",
},
xTimeLeft: "%{time} jäljellä",
- youCanOnlyUploadFileTypes: "Sallitut tiedostomuodot: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} ei ole tuettu. Voit lähettää vain: %{types}",
youCanOnlyUploadX: {
"0": "Voit lähettää vain %{smart_count} tiedosto",
"1": "Voit lähettää vain %{smart_count} tiedostoa",
diff --git a/packages/@uppy/locales/lib/fr_FR.js b/packages/@uppy/locales/lib/fr_FR.js
index 6be6dfc..9ca0197 100644
--- a/packages/@uppy/locales/lib/fr_FR.js
+++ b/packages/@uppy/locales/lib/fr_FR.js
@@ -188,7 +188,7 @@ fr_FR.strings = {
"1": "%{smart_count} autres fichiers ajoutés",
},
xTimeLeft: "%{time} restantes",
- youCanOnlyUploadFileTypes: "Vous pouvez seulement téléverser: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} n’est pas pris en charge. Vous pouvez seulement téléverser: %{types}",
youCanOnlyUploadX: {
"0": "Vous pouvez seulement téléverser %{smart_count} fichier",
"1": "Vous pouvez seulement téléverser %{smart_count} fichiers",
diff --git a/packages/@uppy/locales/lib/gl_ES.js b/packages/@uppy/locales/lib/gl_ES.js
index 19fea03..fc30ce7 100644
--- a/packages/@uppy/locales/lib/gl_ES.js
+++ b/packages/@uppy/locales/lib/gl_ES.js
@@ -121,7 +121,7 @@ gl_ES.strings = {
"1": "%{smart_count} arquivos máis engadidos",
},
xTimeLeft: "%{time} restantes",
- youCanOnlyUploadFileTypes: "Soamente podes subir: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} non é compatible. Soamente podes subir: %{types}",
youCanOnlyUploadX: {
"0": "Soamente podes subir %{smart_count} arquivo",
"1": "Soamente podes subir %{smart_count} arquivos",
diff --git a/packages/@uppy/locales/lib/he_IL.js b/packages/@uppy/locales/lib/he_IL.js
index eba3cf5..2c2b0cf 100644
--- a/packages/@uppy/locales/lib/he_IL.js
+++ b/packages/@uppy/locales/lib/he_IL.js
@@ -125,7 +125,7 @@ he_IL.strings = {
"1": "עוד %{smart_count} קבצים נוספו",
},
xTimeLeft: "%{time} left",
- youCanOnlyUploadFileTypes: "You can only upload: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} אינו נתמך. ניתן להעלות רק: %{types}",
youCanOnlyUploadX: {
"0": "ניתן העלות רק קובץ %{smart_count}",
"1": "ניתן להעלות רק %{smart_count} קבצים",
diff --git a/packages/@uppy/locales/lib/hi_IN.js b/packages/@uppy/locales/lib/hi_IN.js
index 1668393..7ac6305 100644
--- a/packages/@uppy/locales/lib/hi_IN.js
+++ b/packages/@uppy/locales/lib/hi_IN.js
@@ -167,7 +167,7 @@ hi_IN.strings = {
"1": "%{smart_count} और फ़ाइलें जोड़ी गई",
},
xTimeLeft: "%{time} शेष",
- youCanOnlyUploadFileTypes: "आप केवल %{types} अपलोड कर सकते हैं",
+ youCanOnlyUploadFileTypes: "%{file} समर्थित नहीं है। आप केवल %{types} अपलोड कर सकते हैं",
youCanOnlyUploadX: {
"0": "आप केवल %{smart_count} फ़ाइल अपलोड कर सकते हैं",
"1": "आप केवल %{smart_count} फ़ाइलें अपलोड कर सकते हैं",
diff --git a/packages/@uppy/locales/lib/hr_HR.js b/packages/@uppy/locales/lib/hr_HR.js
index d2279a9..1e1caec 100644
--- a/packages/@uppy/locales/lib/hr_HR.js
+++ b/packages/@uppy/locales/lib/hr_HR.js
@@ -122,7 +122,7 @@ hr_HR.strings = {
"1": "Broj dodatih datoteka: %{smart_count}",
},
xTimeLeft: "Preostalo vrijeme %{time} ",
- youCanOnlyUploadFileTypes: "Moguće je prenijeti samo: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} nije podržan. Moguće je prenijeti samo: %{types}",
youCanOnlyUploadX: {
"0": "Dozvoljeni broj datoteka za prijenos: %{smart_count}",
"1": "Dozvoljeni broj datoteka za prijenos: %{smart_count}",
diff --git a/packages/@uppy/locales/lib/hu_HU.js b/packages/@uppy/locales/lib/hu_HU.js
index 2bed798..432d253 100644
--- a/packages/@uppy/locales/lib/hu_HU.js
+++ b/packages/@uppy/locales/lib/hu_HU.js
@@ -91,7 +91,7 @@ hu_HU.strings = {
xFilesSelected: "%{smart_count} fájl kiválasztva",
xMoreFilesAdded: "további %{smart_count} fájl hozzáadva",
xTimeLeft: "%{time} van hátra",
- youCanOnlyUploadFileTypes: "Feltölthető formátumok: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} nem támogatott. Csak a következő formátumokat töltheti fel: %{types}",
youCanOnlyUploadX: "Csak %{smart_count} fájl tölthető fel",
youHaveToAtLeastSelectX: "Legalább %{smart_count} fájlt ki kell választania",
selectFileNamed: "Válaszd ki a fájlt %{name}",
diff --git a/packages/@uppy/locales/lib/id_ID.js b/packages/@uppy/locales/lib/id_ID.js
index 440c62c..62fab36 100644
--- a/packages/@uppy/locales/lib/id_ID.js
+++ b/packages/@uppy/locales/lib/id_ID.js
@@ -124,7 +124,7 @@ id_ID.strings = {
"1": "%{smart_count} berkas lagi ditambahkan",
},
xTimeLeft: "Tersisa %{time}",
- youCanOnlyUploadFileTypes: "Anda hanya dapat menggunggah: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} tidak didukung. Anda hanya dapat mengunggah: %{types}",
youCanOnlyUploadX: {
"0": "Anda hanya dapat mengunggah %{smart_count} berkas",
"1": "Anda hanya dapat mengunggah %{smart_count} berkas",
diff --git a/packages/@uppy/locales/lib/is_IS.js b/packages/@uppy/locales/lib/is_IS.js
index 05ffbbe..e3832e7 100644
--- a/packages/@uppy/locales/lib/is_IS.js
+++ b/packages/@uppy/locales/lib/is_IS.js
@@ -126,7 +126,7 @@ is_IS.strings = {
"1": "%{smart_count} fleiri skrám bætt við",
},
xTimeLeft: "%{time} eftir",
- youCanOnlyUploadFileTypes: "Þú getur aðeins upphalað: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} er ekki stutt. Þú getur aðeins upphalað: %{types}",
youCanOnlyUploadX: {
"0": "Þú getur aðeins upphalað %{smart_count} skrá",
"1": "Þú getur aðeins upphalað %{smart_count} skrám",
diff --git a/packages/@uppy/locales/lib/it_IT.js b/packages/@uppy/locales/lib/it_IT.js
index 69a2323..f52af78 100644
--- a/packages/@uppy/locales/lib/it_IT.js
+++ b/packages/@uppy/locales/lib/it_IT.js
@@ -121,7 +121,7 @@ it_IT.strings = {
"1": "%{smart_count} altri file aggiunti",
},
xTimeLeft: "%{time} rimasto",
- youCanOnlyUploadFileTypes: "Puoi caricare solamente: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} non è supportato. Puoi caricare solamente: %{types}",
youCanOnlyUploadX: {
"0": "Puoi caricare %{smart_count} solo file",
"1": "Puoi caricare solo %{smart_count} file",
diff --git a/packages/@uppy/locales/lib/ja_JP.js b/packages/@uppy/locales/lib/ja_JP.js
index 2374834..48f3029 100644
--- a/packages/@uppy/locales/lib/ja_JP.js
+++ b/packages/@uppy/locales/lib/ja_JP.js
@@ -123,7 +123,7 @@ ja_JP.strings = {
"1": "%{smart_count} ファイルを追加",
},
xTimeLeft: "残り %{time}",
- youCanOnlyUploadFileTypes: "許可されているファイル形式は次の物です: %{types}",
+ youCanOnlyUploadFileTypes: "%{file}はサポートされていません。アップロードできるのは次の形式のみです: %{types}",
youCanOnlyUploadX: {
"0": "%{smart_count} ファイル数のみアップロード可能です",
"1": "%{smart_count} ファイル数のみアップロード可能です",
diff --git a/packages/@uppy/locales/lib/ko_KR.js b/packages/@uppy/locales/lib/ko_KR.js
index c6ec247..fec9574 100644
--- a/packages/@uppy/locales/lib/ko_KR.js
+++ b/packages/@uppy/locales/lib/ko_KR.js
@@ -96,7 +96,7 @@ ko_KR.strings = {
xFilesSelected: "%{smart_count}개의 파일 선택됨",
xMoreFilesAdded: "%{smart_count}개의 파일이 더 추가 됨",
xTimeLeft: "%{time} 남음",
- youCanOnlyUploadFileTypes: "업로드 가능 형식: %{types}",
+ youCanOnlyUploadFileTypes: "%{file}은(는) 지원되지 않습니다. 업로드 가능 형식: %{types}",
youCanOnlyUploadX: "%{smart_count}개의 파일만 업로드할 수 있습니다",
youHaveToAtLeastSelectX: "최소 %{smart_count}개의 파일을 선택해야 합니다",
};
diff --git a/packages/@uppy/locales/lib/ms_MY.js b/packages/@uppy/locales/lib/ms_MY.js
index dd36e0c..963e1d0 100644
--- a/packages/@uppy/locales/lib/ms_MY.js
+++ b/packages/@uppy/locales/lib/ms_MY.js
@@ -204,7 +204,7 @@ ms_MY.strings = {
"1": "%{smart_count} lagi fail ditambah",
},
xTimeLeft: "%{time} lagi tinggal",
- youCanOnlyUploadFileTypes: "Anda hanya boleh muat naik: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} tidak disokong. Anda hanya boleh muat naik: %{types}",
youCanOnlyUploadX: {
"0": "Anda hanya boleh muat naik %{smart_count} fail",
"1": "Anda hanya boleh muat naik %{smart_count} fail",
diff --git a/packages/@uppy/locales/lib/nb_NO.js b/packages/@uppy/locales/lib/nb_NO.js
index f1ad3a0..b7f9718 100644
--- a/packages/@uppy/locales/lib/nb_NO.js
+++ b/packages/@uppy/locales/lib/nb_NO.js
@@ -156,7 +156,7 @@ nb_NO.strings = {
"1": "%{smart_count} filer lagt til",
},
xTimeLeft: "%{time} igjen",
- youCanOnlyUploadFileTypes: "Du kan bare laste opp: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} støttes ikke. Du kan bare laste opp: %{types}",
youCanOnlyUploadX: {
"0": "Du kan bare laste opp %{smart_count} fil",
"1": "Du kan bare laste opp %{smart_count} filer",
diff --git a/packages/@uppy/locales/lib/nl_NL.js b/packages/@uppy/locales/lib/nl_NL.js
index 7ae1dd6..69af9b7 100644
--- a/packages/@uppy/locales/lib/nl_NL.js
+++ b/packages/@uppy/locales/lib/nl_NL.js
@@ -183,7 +183,7 @@ nl_NL.strings = {
"1": "%{smart_count} extra bestanden toegevoegd",
},
xTimeLeft: "%{time} over",
- youCanOnlyUploadFileTypes: "Je kan enkel volgende types uploaden: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} wordt niet ondersteund. Je kan enkel volgende types uploaden: %{types}",
youCanOnlyUploadX: {
"0": "Je kan slechts %{smart_count} bestand uploaden",
"1": "Je kan slechts %{smart_count} bestanden uploaden",
diff --git a/packages/@uppy/locales/lib/pl_PL.js b/packages/@uppy/locales/lib/pl_PL.js
index 79f0601..cfce97f 100644
--- a/packages/@uppy/locales/lib/pl_PL.js
+++ b/packages/@uppy/locales/lib/pl_PL.js
@@ -133,7 +133,7 @@ pl_PL.strings = {
"1": "dodano %{smart_count} pliki więcej",
},
xTimeLeft: "%{time} zostało",
- youCanOnlyUploadFileTypes: "Możesz przesłać tylko: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} nie jest obsługiwany. Możesz przesłać tylko: %{types}",
youCanOnlyUploadX: {
"0": "Możesz wgrać tylko %{smart_count} plik",
"1": "Możesz wgrać tylko %{smart_count} pliki",
diff --git a/packages/@uppy/locales/lib/pt_BR.js b/packages/@uppy/locales/lib/pt_BR.js
index 49e6657..ac5adbf 100644
--- a/packages/@uppy/locales/lib/pt_BR.js
+++ b/packages/@uppy/locales/lib/pt_BR.js
@@ -215,7 +215,7 @@ pt_BR.strings = {
"1": "%{smart_count} arquivos adicionados",
},
xTimeLeft: "%{time} restantes",
- youCanOnlyUploadFileTypes: "Você pode enviar apenas arquivos: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} não é suportado. Você pode enviar apenas: %{types}",
youCanOnlyUploadX: {
"0": "Você pode enviar apenas %{smart_count} arquivo",
"1": "Você pode enviar apenas %{smart_count} arquivos",
diff --git a/packages/@uppy/locales/lib/pt_PT.js b/packages/@uppy/locales/lib/pt_PT.js
index 626921b..b185942 100644
--- a/packages/@uppy/locales/lib/pt_PT.js
+++ b/packages/@uppy/locales/lib/pt_PT.js
@@ -121,7 +121,7 @@ pt_PT.strings = {
"1": "%{smart_count} ficheiros adicionados",
},
xTimeLeft: "%{time} restantes",
- youCanOnlyUploadFileTypes: "Só pode enviar ficheiros: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} não é suportado. Só pode enviar: %{types}",
youCanOnlyUploadX: {
"0": "Só pode enviar %{smart_count} ficheiro",
"1": "Só pode enviar %{smart_count} ficheiros",
diff --git a/packages/@uppy/locales/lib/ro_RO.js b/packages/@uppy/locales/lib/ro_RO.js
index d34eadf..ce8df17 100644
--- a/packages/@uppy/locales/lib/ro_RO.js
+++ b/packages/@uppy/locales/lib/ro_RO.js
@@ -133,7 +133,7 @@ ro_RO.strings = {
"1": "%{smart_count} fișiere adăugate",
},
xTimeLeft: "%{time} rămas(e)",
- youCanOnlyUploadFileTypes: "Poți încărca doar: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} nu este acceptat. Poți încărca doar: %{types}",
youCanOnlyUploadX: {
"0": "Poți încărca doar %{smart_count} fișier",
"1": "Poți încărca doar %{smart_count} fișiere",
diff --git a/packages/@uppy/locales/lib/ru_RU.js b/packages/@uppy/locales/lib/ru_RU.js
index f82bac0..8953cf0 100644
--- a/packages/@uppy/locales/lib/ru_RU.js
+++ b/packages/@uppy/locales/lib/ru_RU.js
@@ -220,7 +220,7 @@ ru_RU.strings = {
"2": "%{smart_count} дополнительных файлов добавлено",
},
xTimeLeft: "осталось %{time}",
- youCanOnlyUploadFileTypes: "Вы можете загрузить только: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} не поддерживается. Вы можете загрузить только: %{types}",
youCanOnlyUploadX: {
"0": "Вы можете загрузить только %{smart_count} файл",
"1": "Вы можете загрузить только %{smart_count} файла",
diff --git a/packages/@uppy/locales/lib/sk_SK.js b/packages/@uppy/locales/lib/sk_SK.js
index 3f5f569..2c0c6df 100644
--- a/packages/@uppy/locales/lib/sk_SK.js
+++ b/packages/@uppy/locales/lib/sk_SK.js
@@ -154,7 +154,7 @@ sk_SK.strings = {
"1": "%{smart_count} ďalšie pridané súbory",
},
xTimeLeft: "%{time} zostáva",
- youCanOnlyUploadFileTypes: "Môžete nahrať iba tieto typy súborov: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} nie je podporovaný. Môžete nahrať iba tieto typy súborov: %{types}",
youCanOnlyUploadX: {
"0": "Môžete nahrať iba %{smart_count} súbor",
"1": "Môžete nahrať iba %{smart_count} súbory",
diff --git a/packages/@uppy/locales/lib/sr_RS_Cyrillic.js b/packages/@uppy/locales/lib/sr_RS_Cyrillic.js
index 7435325..cbcea1b 100644
--- a/packages/@uppy/locales/lib/sr_RS_Cyrillic.js
+++ b/packages/@uppy/locales/lib/sr_RS_Cyrillic.js
@@ -121,7 +121,7 @@ sr_RS_Cyrillic.strings = {
"1": "Број додатих датотека: %{smart_count}",
},
xTimeLeft: "Преостало време %{time} ",
- youCanOnlyUploadFileTypes: "Можете да отпремите само: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} није подржан. Можете да отпремите само: %{types}",
youCanOnlyUploadX: {
"0": "Дозвољени број датотека за отпремање: %{smart_count}",
"1": "Дозвољени број датотека за отпремање: %{smart_count}",
diff --git a/packages/@uppy/locales/lib/sr_RS_Latin.js b/packages/@uppy/locales/lib/sr_RS_Latin.js
index 7a6715d..2b02882 100644
--- a/packages/@uppy/locales/lib/sr_RS_Latin.js
+++ b/packages/@uppy/locales/lib/sr_RS_Latin.js
@@ -121,7 +121,7 @@ sr_RS_Latin.strings = {
"1": "Broj dodatih datoteka: %{smart_count}",
},
xTimeLeft: "Preostalo vreme %{time} ",
- youCanOnlyUploadFileTypes: "Možete da otpremite samo: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} nije podržan. Možete da otpremite samo: %{types}",
youCanOnlyUploadX: {
"0": "Dozvoljeni broj datoteka za otpremanje: %{smart_count}",
"1": "Dozvoljeni broj datoteka za otpremanje: %{smart_count}",
diff --git a/packages/@uppy/locales/lib/sv_SE.js b/packages/@uppy/locales/lib/sv_SE.js
index cc14d88..f5221a4 100644
--- a/packages/@uppy/locales/lib/sv_SE.js
+++ b/packages/@uppy/locales/lib/sv_SE.js
@@ -124,7 +124,7 @@ sv_SE.strings = {
"1": "%{smart_count} filer tillagda",
},
xTimeLeft: "%{time} återstår",
- youCanOnlyUploadFileTypes: "Du kan endast ladda upp: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} stöds inte. Du kan endast ladda upp: %{types}",
youCanOnlyUploadX: {
"0": "Du kan endast ladda upp %{smart_count} fil",
"1": "Du kan endast ladda upp %{smart_count} filer",
diff --git a/packages/@uppy/locales/lib/th_TH.js b/packages/@uppy/locales/lib/th_TH.js
index 66110e0..f0b3e00 100644
--- a/packages/@uppy/locales/lib/th_TH.js
+++ b/packages/@uppy/locales/lib/th_TH.js
@@ -151,7 +151,7 @@ th_TH.strings = {
"1": "%{smart_count} ไฟล์ที่สามารถเพิ่มได้",
},
xTimeLeft: "เหลืออีก %{time}",
- youCanOnlyUploadFileTypes: "คุณสามารถอัพโหลดได้แค่: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} ไม่รองรับ คุณสามารถอัพโหลดได้แค่: %{types}",
youCanOnlyUploadX: {
"0": "คุณสามารถอัพโหลดได้แค่ %{smart_count} ไฟล์",
"1": "คุณสามารถอัพโหลดได้แค่ %{smart_count} ไฟล์",
diff --git a/packages/@uppy/locales/lib/tr_TR.js b/packages/@uppy/locales/lib/tr_TR.js
index cea5415..70c2477 100644
--- a/packages/@uppy/locales/lib/tr_TR.js
+++ b/packages/@uppy/locales/lib/tr_TR.js
@@ -120,7 +120,7 @@ tr_TR.strings = {
"1": "%{smart_count} dosya daha eklendi",
},
xTimeLeft: "kalan süre %{time}",
- youCanOnlyUploadFileTypes: "Sadece %{types} yükleyebilirsiniz",
+ youCanOnlyUploadFileTypes: "%{file} desteklenmiyor. Sadece %{types} yükleyebilirsiniz",
youCanOnlyUploadX: {
"0": "Sadece %{smart_count} dosya yükleyebilirsiniz",
"1": "Sadece %{smart_count} dosya yükleyebilirsiniz",
diff --git a/packages/@uppy/locales/lib/uk_UA.js b/packages/@uppy/locales/lib/uk_UA.js
index 62fbb0d..684d96f 100644
--- a/packages/@uppy/locales/lib/uk_UA.js
+++ b/packages/@uppy/locales/lib/uk_UA.js
@@ -208,7 +208,7 @@ uk_UA.strings = {
"2": "%{smart_count} додаткових файлів додано",
},
xTimeLeft: "залишилося %{time}",
- youCanOnlyUploadFileTypes: "Ви можете завантажити тільки: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} не підтримується. Ви можете завантажити тільки: %{types}",
youCanOnlyUploadX: {
"0": "Ви можете завантажити тільки %{smart_count} файл",
"1": "Ви можете завантажити тільки %{smart_count} файли",
diff --git a/packages/@uppy/locales/lib/uz_UZ.js b/packages/@uppy/locales/lib/uz_UZ.js
index 56cfa49..81ad27a 100644
--- a/packages/@uppy/locales/lib/uz_UZ.js
+++ b/packages/@uppy/locales/lib/uz_UZ.js
@@ -192,7 +192,7 @@ uz_UZ.strings = {
"1": "Yana %{smart_count} ta fayl qo‘shildi",
},
xTimeLeft: "%{time} chap",
- youCanOnlyUploadFileTypes: "Siz faqat yuklashingiz mumkin: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} qo‘llab-quvvatlanmaydi. Siz faqat yuklashingiz mumkin: %{types}",
youCanOnlyUploadX: {
"0": "Siz faqat %{smart_count} faylni yuklashingiz mumkin",
"1": "Siz faqat %{smart_count} ta faylni yuklashingiz mumkin",
diff --git a/packages/@uppy/locales/lib/vi_VN.js b/packages/@uppy/locales/lib/vi_VN.js
index 29c3308..ffc9194 100644
--- a/packages/@uppy/locales/lib/vi_VN.js
+++ b/packages/@uppy/locales/lib/vi_VN.js
@@ -199,7 +199,7 @@ vi_VN.strings = {
"1": "Thêm %{smart_count} tệp",
},
xTimeLeft: "Còn lại %{time}",
- youCanOnlyUploadFileTypes: "Bạn chỉ có thể tải lên: %{types}",
+ youCanOnlyUploadFileTypes: "%{file} không được hỗ trợ. Bạn chỉ có thể tải lên: %{types}",
youCanOnlyUploadX: {
"0": "Bạn chỉ có thể tải lên %{smart_count} tệp",
"1": "Bạn chỉ có thể tải lên %{smart_count} tệp",
diff --git a/packages/@uppy/locales/lib/zh_CN.js b/packages/@uppy/locales/lib/zh_CN.js
index aa0013b..62e13ea 100644
--- a/packages/@uppy/locales/lib/zh_CN.js
+++ b/packages/@uppy/locales/lib/zh_CN.js
@@ -110,7 +110,7 @@ zh_CN.strings = {
xFilesSelected: "%{smart_count} 个文件待上传",
xMoreFilesAdded: "又有 %{smart_count} 个文件被添加",
xTimeLeft: "剩余 %{time}",
- youCanOnlyUploadFileTypes: "您只能上传这些文件类型:%{types}",
+ youCanOnlyUploadFileTypes: "不支持 %{file}. 您只能上传这些文件类型:%{types}",
youCanOnlyUploadX: "您只能上传 %{smart_count} 个文件",
youHaveToAtLeastSelectX: "您至少要选择 %{smart_count} 个文件",
};
diff --git a/packages/@uppy/locales/lib/zh_TW.js b/packages/@uppy/locales/lib/zh_TW.js
index 6cab51f..d73b276 100644
--- a/packages/@uppy/locales/lib/zh_TW.js
+++ b/packages/@uppy/locales/lib/zh_TW.js
@@ -158,7 +158,7 @@ zh_TW.strings = {
xFilesSelected: "已選擇 %{smart_count} 個檔案",
xMoreFilesAdded: "又新增 %{smart_count} 個檔案",
xTimeLeft: "還剩下 %{time}",
- youCanOnlyUploadFileTypes: "您只能上傳這些檔案類型:%{types}",
+ youCanOnlyUploadFileTypes: "不支援 %{fie}. 您只能上傳這些檔案類型:%{types}",
youCanOnlyUploadX: "您只能上傳 %{smart_count} 個檔案",
youHaveToAtLeastSelectX: "您至少要選擇 %{smart_count} 個檔案",
zoomIn: "放大", |
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
When users upload multiple files and some of them fail the allowedFileTypes check, the resulting error message doesn’t indicate which file(s) were rejected. This creates confusion for users, especially when dealing with a batch of uploads.
Example
Instead of: You can only upload: .png, .jpg
we could say: document.exe’ is not supported. You can only upload: .png, .jpg
Benefit
This would make it much easier for users to identify and correct problematic files during bulk uploads.