diff --git a/packages/webapp/lang/de.json b/packages/webapp/lang/de.json index 910ee077..ef0081fd 100644 --- a/packages/webapp/lang/de.json +++ b/packages/webapp/lang/de.json @@ -210,7 +210,7 @@ "defaultMessage": "Importieren Sie vorhandene Mindmaps" }, "import.error-file": { - "defaultMessage": "Sie versuchen, eine Datei mit einer ungültigen Erweiterung zu importieren. Gültige Erweiterungen sind .mm und .wxml" + "defaultMessage": "Import fehlgeschlagen: {error}" }, "info.basic-info": { "defaultMessage": "Basisinformation" diff --git a/packages/webapp/lang/en.json b/packages/webapp/lang/en.json index f1d0f537..56d60063 100644 --- a/packages/webapp/lang/en.json +++ b/packages/webapp/lang/en.json @@ -225,7 +225,7 @@ "defaultMessage": "Import existing mindmap" }, "import.error-file": { - "defaultMessage": "You are trying to import a file with an invalid extension, valid extensions are .mm and .wxml" + "defaultMessage": "Import failed: {error}" }, "info.basic-info": { "defaultMessage": "Basic Info" diff --git a/packages/webapp/lang/es.json b/packages/webapp/lang/es.json index 70cb2140..0c3997eb 100644 --- a/packages/webapp/lang/es.json +++ b/packages/webapp/lang/es.json @@ -219,7 +219,7 @@ "defaultMessage": "Importar mapa mental existente" }, "import.error-file": { - "defaultMessage": "Está intentando importar un archivo con una extensión no valida, las extenciones validas son .mm y .wxml" + "defaultMessage": "Error al importar: {error}" }, "info.basic-info": { "defaultMessage": "Información básica" diff --git a/packages/webapp/lang/fr.json b/packages/webapp/lang/fr.json index 3b0c712e..7a94d89b 100644 --- a/packages/webapp/lang/fr.json +++ b/packages/webapp/lang/fr.json @@ -210,7 +210,7 @@ "defaultMessage": "Importer une carte mentale existante" }, "import.error-file": { - "defaultMessage": "Vous essayez d'importer un fichier avec une extension invalide, les extensions valides sont .mm et .wxml" + "defaultMessage": "Échec de l'importation : {error}" }, "info.basic-info": { "defaultMessage": "Informations de base" diff --git a/packages/webapp/lang/ru.json b/packages/webapp/lang/ru.json index 180aaa90..fbe6d04a 100644 --- a/packages/webapp/lang/ru.json +++ b/packages/webapp/lang/ru.json @@ -210,7 +210,7 @@ "defaultMessage": "Загрузить майнд-карту с компьютера" }, "import.error-file": { - "defaultMessage": "Вы пытаетесь импортировать файл с недопустимым расширением, допустимыми расширениями являются .mm и .wxml." + "defaultMessage": "Ошибка импорта: {error}" }, "info.basic-info": { "defaultMessage": "Основная информация" diff --git a/packages/webapp/lang/zh.json b/packages/webapp/lang/zh.json index 8fed7759..629046e2 100644 --- a/packages/webapp/lang/zh.json +++ b/packages/webapp/lang/zh.json @@ -216,7 +216,7 @@ "defaultMessage": "导入现有的思维导图" }, "import.error-file": { - "defaultMessage": "您正在尝试导入具有无效扩展名的文件,有效扩展名是 .mm 和 .wxml" + "defaultMessage": "导入失败:{error}" }, "info.basic-info": { "defaultMessage": "基本信息" diff --git a/packages/webapp/src/compiled-lang/de.json b/packages/webapp/src/compiled-lang/de.json index 4608fdb3..b49b10a8 100644 --- a/packages/webapp/src/compiled-lang/de.json +++ b/packages/webapp/src/compiled-lang/de.json @@ -452,7 +452,11 @@ "import.error-file": [ { "type": 0, - "value": "Sie versuchen, eine Datei mit einer ungültigen Erweiterung zu importieren. Gültige Erweiterungen sind .mm und .wxml" + "value": "Import fehlgeschlagen: " + }, + { + "type": 1, + "value": "error" } ], "import.title": [ diff --git a/packages/webapp/src/compiled-lang/en.json b/packages/webapp/src/compiled-lang/en.json index 903a8561..834713c1 100644 --- a/packages/webapp/src/compiled-lang/en.json +++ b/packages/webapp/src/compiled-lang/en.json @@ -446,7 +446,11 @@ "import.error-file": [ { "type": 0, - "value": "You are trying to import a file with an invalid extension, valid extensions are .mm and .wxml" + "value": "Import failed: " + }, + { + "type": 1, + "value": "error" } ], "import.title": [ diff --git a/packages/webapp/src/compiled-lang/es.json b/packages/webapp/src/compiled-lang/es.json index 5bf9538e..67fd2bca 100644 --- a/packages/webapp/src/compiled-lang/es.json +++ b/packages/webapp/src/compiled-lang/es.json @@ -446,7 +446,11 @@ "import.error-file": [ { "type": 0, - "value": "Está intentando importar un archivo con una extensión no valida, las extenciones validas son .mm y .wxml" + "value": "Error al importar: " + }, + { + "type": 1, + "value": "error" } ], "import.title": [ diff --git a/packages/webapp/src/compiled-lang/fr.json b/packages/webapp/src/compiled-lang/fr.json index e494f4f2..48c6db68 100644 --- a/packages/webapp/src/compiled-lang/fr.json +++ b/packages/webapp/src/compiled-lang/fr.json @@ -444,7 +444,11 @@ "import.error-file": [ { "type": 0, - "value": "Vous essayez d'importer un fichier avec une extension invalide, les extensions valides sont .mm et .wxml" + "value": "Échec de l'importation : " + }, + { + "type": 1, + "value": "error" } ], "import.title": [ diff --git a/packages/webapp/src/compiled-lang/ru.json b/packages/webapp/src/compiled-lang/ru.json index 95777051..46053210 100644 --- a/packages/webapp/src/compiled-lang/ru.json +++ b/packages/webapp/src/compiled-lang/ru.json @@ -446,7 +446,11 @@ "import.error-file": [ { "type": 0, - "value": "Вы пытаетесь импортировать файл с недопустимым расширением, допустимыми расширениями являются .mm и .wxml." + "value": "Ошибка импорта: " + }, + { + "type": 1, + "value": "error" } ], "import.title": [ diff --git a/packages/webapp/src/compiled-lang/zh.json b/packages/webapp/src/compiled-lang/zh.json index 4c30f0e2..a9202075 100644 --- a/packages/webapp/src/compiled-lang/zh.json +++ b/packages/webapp/src/compiled-lang/zh.json @@ -446,7 +446,11 @@ "import.error-file": [ { "type": 0, - "value": "您正在尝试导入具有无效扩展名的文件,有效扩展名是 .mm 和 .wxml" + "value": "导入失败:" + }, + { + "type": 1, + "value": "error" } ], "import.title": [ diff --git a/packages/webapp/src/components/maps-page/action-dispatcher/import-dialog/index.tsx b/packages/webapp/src/components/maps-page/action-dispatcher/import-dialog/index.tsx index 1efad759..1dea8597 100644 --- a/packages/webapp/src/components/maps-page/action-dispatcher/import-dialog/index.tsx +++ b/packages/webapp/src/components/maps-page/action-dispatcher/import-dialog/index.tsx @@ -94,7 +94,10 @@ const ImportDialog = ({ onClose }: CreateProps): React.ReactElement => { error: true, message: intl.formatMessage({ id: 'import.error-file', - defaultMessage: 'You can import WiseMapping and Freemind maps to your list of maps. Select the file you want to import.' + defaultMessage: 'Import error {error}', + }, + { + error: 'You can import WiseMapping and Freemind maps to your list of maps. Select the file you want to import.' }) }); } @@ -116,7 +119,13 @@ const ImportDialog = ({ onClose }: CreateProps): React.ReactElement => { if (e instanceof Error) { setErrorFile({ error: true, - message: e.message + message: intl.formatMessage({ + id: 'import.error-file', + defaultMessage: 'Import error {error}', + }, + { + error: e.message + }) }); } }