@haus-tech/product-import-export-plugin 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -255,7 +255,10 @@ let ProductImportComponent = class ProductImportComponent {
|
|
|
255
255
|
}
|
|
256
256
|
catch (error) {
|
|
257
257
|
console.log(`Invalid JSON in column: ${col}, row: ${i + 1}`);
|
|
258
|
-
this.notificationService.error(
|
|
258
|
+
this.notificationService.error(this.translate.instant('product-import.notifications.invalid-json', {
|
|
259
|
+
col,
|
|
260
|
+
row: i + 1,
|
|
261
|
+
}));
|
|
259
262
|
resolve({ isValid: false });
|
|
260
263
|
return;
|
|
261
264
|
}
|
|
@@ -349,9 +349,10 @@ export class ProductImportComponent implements OnInit {
|
|
|
349
349
|
} catch (error) {
|
|
350
350
|
console.log(`Invalid JSON in column: ${col}, row: ${i + 1}`)
|
|
351
351
|
this.notificationService.error(
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
352
|
+
this.translate.instant('product-import.notifications.invalid-json', {
|
|
353
|
+
col,
|
|
354
|
+
row: i + 1,
|
|
355
|
+
}),
|
|
355
356
|
)
|
|
356
357
|
resolve({ isValid: false })
|
|
357
358
|
return
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"missing-column": "Kolumnen saknas: ",
|
|
26
26
|
"no-lines-in-file": "Filen är tom.",
|
|
27
27
|
"file-read-error": "Ett fel uppstod vid läsning av filen.",
|
|
28
|
-
"invalid-json": "
|
|
28
|
+
"invalid-json": "Fältet {col} på rad {row} innehåller felaktig JSON-struktur.",
|
|
29
29
|
"missing-languages": "Din CSV-fil innehåller språk som inte är tillgängliga i den här kanalen. Vänligen lägg till språken i kanalen eller ta bort de språk som inte används och försök igen.",
|
|
30
30
|
"mismatched-option-values": "Antalet produktalternativ för vissa produktvarianter är felaktigt: ",
|
|
31
31
|
"missing-main-language-name": "Huvudspråket saknas för namn. Vänligen lägg till huvudspråket och försök igen.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haus-tech/product-import-export-plugin",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"description": "A Vendure plugin for importing and exporting products using a CSV file",
|
|
5
5
|
"author": "Haus Tech",
|
|
6
6
|
"repository": {
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"csv-parse": "^5.5.6",
|
|
28
|
-
"csv-stringify": "^6.5.1"
|
|
29
|
-
"slug": "^9.1.0"
|
|
28
|
+
"csv-stringify": "^6.5.1"
|
|
30
29
|
},
|
|
31
30
|
"peerDependencies": {
|
|
31
|
+
"csv-parse": "^5.5.6",
|
|
32
|
+
"csv-stringify": "^6.5.1",
|
|
32
33
|
"slug": "^9.1.0"
|
|
33
34
|
}
|
|
34
35
|
}
|