From 190a4434633e09692af7a2f7ce1dbfc9169939fb Mon Sep 17 00:00:00 2001 From: David Ly Date: Wed, 4 Dec 2024 10:55:07 +0100 Subject: [PATCH] Added 5 new parts: RIM / interior --- .../src/i18n/translations/vehicleParts.ts | 40 ++++++++++++++++--- packages/types/src/state/part.ts | 5 +++ 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/packages/common/src/i18n/translations/vehicleParts.ts b/packages/common/src/i18n/translations/vehicleParts.ts index 3441e771b..600a1419e 100644 --- a/packages/common/src/i18n/translations/vehicleParts.ts +++ b/packages/common/src/i18n/translations/vehicleParts.ts @@ -4,6 +4,12 @@ import { TranslationObject, VehiclePart } from '@monkvision/types'; * The translated labels for each vehicle part available in the SDK. */ export const vehiclePartLabels: Record = { + [VehiclePart.IGNORE]: { + en: 'IGNORE', + fr: 'IGNORE', + de: 'IGNORE', + nl: 'IGNORE', + }, [VehiclePart.BUMPER_BACK]: { en: 'Rear Bumper', fr: 'Pare-chocs arrière', @@ -466,10 +472,34 @@ export const vehiclePartLabels: Record = { de: 'Griff Rückseite Mitte', nl: 'Handgreep Terug Midden', }, - [VehiclePart.IGNORE]: { - en: 'IGNORE', - fr: 'IGNORE', - de: 'IGNORE', - nl: 'IGNORE', + [VehiclePart.RIM_BACK_LEFT]: { + en: 'Back left rim', + fr: 'Jante arrière gauche', + de: 'Hintere linke Felge', + nl: 'Achtervelg links', + }, + [VehiclePart.RIM_BACK_RIGHT]: { + en: 'Back right rim', + fr: 'Jante arrière droite', + de: 'Hintere rechte Felge', + nl: 'Achtervelg rechts', + }, + [VehiclePart.RIM_FRONT_LEFT]: { + en: 'Front left rim', + fr: 'Jante avant gauche', + de: 'Vordere linke Felge', + nl: 'Voorvelg links', + }, + [VehiclePart.RIM_FRONT_RIGHT]: { + en: 'Front right rim', + fr: 'Jante avant droite', + de: 'Vordere rechte Felge', + nl: 'Voorvelg rechts', + }, + [VehiclePart.INTERIOR]: { + en: 'Interior', + fr: 'Intérieur', + de: 'Innenraum', + nl: 'Interieur', }, }; diff --git a/packages/types/src/state/part.ts b/packages/types/src/state/part.ts index 811d8c029..d056307f5 100644 --- a/packages/types/src/state/part.ts +++ b/packages/types/src/state/part.ts @@ -82,6 +82,11 @@ export enum VehiclePart { CAR_INSIDE = 'car_inside', DAMAGED_CAR_INSIDE = 'damaged_car_inside', HANDLE_BACK_CENTER = 'handle_back_center', + RIM_BACK_LEFT = 'rim_back_left', + RIM_BACK_RIGHT = 'rim_back_right', + RIM_FRONT_LEFT = 'rim_front_left', + RIM_FRONT_RIGHT = 'rim_front_right', + INTERIOR = 'interior', } /**