Skip to content

Commit fada65b

Browse files
author
Gabriel Tira
committed
Added contain_forbidden_parts and vehicle_not_fully_in_frame compliances
Updated translations
1 parent cee21f5 commit fada65b

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

packages/common/src/i18n/translations/image.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,4 +430,46 @@ export const complianceIssueLabels: Record<ComplianceIssue, ImageLabels> = {
430430
nl: 'De foto is in portretstand, neem deze alstublieft in landschapmodus',
431431
},
432432
},
433+
[ComplianceIssue.CONTAIN_FORBIDDEN_PARTS]: {
434+
title: {
435+
en: 'Contain forbidden parts',
436+
fr: 'Contient des parties interdites',
437+
de: 'Enthält verbotene Teile',
438+
nl: 'Bevat verboden onderdelen',
439+
},
440+
description: {
441+
en: 'Make sure to properly align the vehicle with the guides.',
442+
fr: 'Assurez-vous de bien aligner le véhicule avec les guides.',
443+
de: 'Achten Sie darauf, dass das Fahrzeug richtig an den Führungen ausgerichtet ist.',
444+
nl: 'Zorg ervoor dat het voertuig goed is uitgelijnd met de gidsen.',
445+
},
446+
},
447+
[ComplianceIssue.VEHICLE_NOT_FULLY_IN_FRAME]: {
448+
title: {
449+
en: 'Vehicle not fully in frame',
450+
fr: 'Véhicule pas entièrement dans le cadre',
451+
de: 'Fahrzeug nicht vollständig im Bild',
452+
nl: 'Voertuig niet volledig in beeld',
453+
},
454+
description: {
455+
en: 'Make sure that the entire vehicle is visible in the photo.',
456+
fr: "Assurez-vous que l'intégralité du véhicule soit visible sur la photo.",
457+
de: 'Stellen Sie sicher, dass das gesamte Fahrzeug auf dem Foto sichtbar ist.',
458+
nl: 'Zorg ervoor dat het hele voertuig op de foto zichtbaar is.',
459+
},
460+
},
461+
[ComplianceIssue.FINGER_ON_LENS]: {
462+
title: {
463+
en: 'Finger on lens',
464+
fr: "Doigt sur l'objectif",
465+
de: 'Finger auf dem Objektiv',
466+
nl: 'Vinger op de lens',
467+
},
468+
description: {
469+
en: 'Make sure that there is no finger on the camera lens.',
470+
fr: "Assurez-vous qu'il n'y ait pas de doigt sur l'objectif de l'appareil photo.",
471+
de: 'Stellen Sie sicher, dass kein Finger auf dem Kameraobjektiv liegt.',
472+
nl: 'Zorg ervoor dat er geen vinger op de cameralens zit.',
473+
},
474+
},
433475
};

packages/network/test/api/image/mappers.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ const EXPECTED_DEFAULT_COMPLIANCE_ISSUES = [
2929
];
3030

3131
const EXPECTED_COMPLIANCE_ISSUES_ORDER = [
32+
ComplianceIssue.CONTAIN_FORBIDDEN_PARTS,
33+
ComplianceIssue.VEHICLE_NOT_FULLY_IN_FRAME,
34+
ComplianceIssue.FINGER_ON_LENS,
3235
ComplianceIssue.PORTRAIT_IMAGE,
3336
ComplianceIssue.NO_VEHICLE,
3437
ComplianceIssue.BLURRINESS,

packages/types/src/state/image.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ export enum ComplianceIssue {
189189
INTERIOR_NOT_SUPPORTED = 'interior_not_supported',
190190
MISSING = 'missing',
191191
LOW_QUALITY = 'low_quality',
192+
CONTAIN_FORBIDDEN_PARTS = 'contain_forbidden_parts',
193+
VEHICLE_NOT_FULLY_IN_FRAME = 'vehicle_not_fully_in_frame',
194+
FINGER_ON_LENS = 'finger_on_lens',
192195

193196
// Custom issue(s)
194197
PORTRAIT_IMAGE = 'portrait_image',

0 commit comments

Comments
 (0)