From fe17d69b4420b7bcaf6a99ab2f1a6401e926c58c Mon Sep 17 00:00:00 2001 From: decentraland-bot <44584806+decentraland-bot@users.noreply.github.com> Date: Tue, 5 May 2026 13:32:39 +0000 Subject: [PATCH] fix: clarify smart wearable file size error message Route FileType.SMART_WEARABLE to the correct `smart_wearable_too_big` translation key so users see a meaningful title and message explaining that the 3MB limit applies to uncompressed ZIP content, not the ZIP file itself. Update the title in all three locale files (en/es/zh) to make this distinction explicit. Co-Authored-By: Claude Sonnet 4.6 --- .../Modals/CreateSingleItemModal/ImportStep/ImportStep.tsx | 4 ++++ src/modules/translation/languages/en.json | 2 +- src/modules/translation/languages/es.json | 2 +- src/modules/translation/languages/zh.json | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Modals/CreateSingleItemModal/ImportStep/ImportStep.tsx b/src/components/Modals/CreateSingleItemModal/ImportStep/ImportStep.tsx index 7ffd902c0..8b340e9f9 100644 --- a/src/components/Modals/CreateSingleItemModal/ImportStep/ImportStep.tsx +++ b/src/components/Modals/CreateSingleItemModal/ImportStep/ImportStep.tsx @@ -219,6 +219,10 @@ export default class ImportStep extends React.PureComponent { errorTranslationId = 'thumbnail_too_big' break } + case FileType.SMART_WEARABLE: { + errorTranslationId = 'smart_wearable_too_big' + break + } default: { errorTranslationId = 'file_too_big' break diff --git a/src/modules/translation/languages/en.json b/src/modules/translation/languages/en.json index 37aa28efc..bfa1102c5 100644 --- a/src/modules/translation/languages/en.json +++ b/src/modules/translation/languages/en.json @@ -345,7 +345,7 @@ "message": "The max file size is 3MB for Emotes." }, "smart_wearable_too_big": { - "title": "The file is too large and can't be uploaded", + "title": "The uncompressed Smart Wearable content exceeds the size limit", "message": "The total filesize sum of the uncompressed files from the Smart Wearable .zip file must be under 3MB." }, "unknown_required_permissions": { diff --git a/src/modules/translation/languages/es.json b/src/modules/translation/languages/es.json index 7db9e68aa..2b4b815a8 100644 --- a/src/modules/translation/languages/es.json +++ b/src/modules/translation/languages/es.json @@ -344,7 +344,7 @@ "message": "El tamaño máximo de archivo es de 3MB para Emotes." }, "smart_wearable_too_big": { - "title": "El archivo es demasiado grande para cargarlo", + "title": "El contenido descomprimido del Smart Wearable supera el límite de tamaño", "message": "La suma total del tamaño de los archivos descomprimidos del archivo .zip de Smart Wearable debe ser inferior a 3MB." }, "unknown_required_permissions": { diff --git a/src/modules/translation/languages/zh.json b/src/modules/translation/languages/zh.json index bb95e80b1..69f40459b 100644 --- a/src/modules/translation/languages/zh.json +++ b/src/modules/translation/languages/zh.json @@ -338,7 +338,7 @@ "message": "表情的最大文件大小为 3MB。" }, "smart_wearable_too_big": { - "title": "文件太大,无法上传", + "title": "智能可穿戴设备的解压内容超出大小限制", "message": "智能可穿戴设备 .zip 文件中的未压缩文件的总文件大小必须低于 3MB。" }, "unknown_required_permissions": {