diff --git a/packages/client/src/pages/customer_area/index.tsx b/packages/client/src/pages/customer_area/index.tsx index 39d726e52..3e9138a12 100644 --- a/packages/client/src/pages/customer_area/index.tsx +++ b/packages/client/src/pages/customer_area/index.tsx @@ -1,7 +1,11 @@ import React, { useState } from "react"; import { useSelector } from "react-redux"; import { Redirect } from "react-router-dom"; -import { CustomerNavigationLabel, useTranslation } from "@eisbuk/translations"; +import { + CustomerNavigationLabel, + Debug, + useTranslation, +} from "@eisbuk/translations"; import { Button, @@ -154,7 +158,7 @@ const CustomerArea: React.FC = () => { } // aria-label={t(SlotsAria.EnableEdit)} > - Debug + {t(Debug.DebugButtonLabel)} ); diff --git a/packages/translations/src/dict/en.json b/packages/translations/src/dict/en.json index 829968592..d843caef6 100644 --- a/packages/translations/src/dict/en.json +++ b/packages/translations/src/dict/en.json @@ -437,8 +437,9 @@ }, "Debug": { - "SystemDate": "System date", - "ExtendedBookingDate": "Extended booking date", - "DebugOnlyMessage": "This area is for debug only. The changes made here will not be saved." + "DebugButtonLabel": "Simulation", + "SystemDate": "Simulated today's date", + "ExtendedBookingDate": "Simulated extended booking date", + "DebugOnlyMessage": "These values are simulated, so that you can try things out. The changes made here will not be saved." } } diff --git a/packages/translations/src/dict/it.json b/packages/translations/src/dict/it.json index a961d9834..3c0e32cf4 100644 --- a/packages/translations/src/dict/it.json +++ b/packages/translations/src/dict/it.json @@ -440,8 +440,9 @@ }, "Debug": { - "SystemDate": "System date", - "ExtendedBookingDate": "Extended booking date", - "DebugOnlyMessage": "This area is for debug only. The changes made here will not be saved." + "DebugButtonLabel": "Simulazione", + "SystemDate": "Data di oggi simulata", + "ExtendedBookingDate": "Data simulata di scadenza delle prenotazioni", + "DebugOnlyMessage": "Questi valori vengono usati per la simulazione, per fare delle prove. Non vengono registrati da nessuna parte." } } diff --git a/packages/translations/src/translations.ts b/packages/translations/src/translations.ts index 51c63f198..8abbd9d2a 100644 --- a/packages/translations/src/translations.ts +++ b/packages/translations/src/translations.ts @@ -476,4 +476,5 @@ export enum Debug { SystemDate = "Debug.SystemDate", ExtendedBookingDate = "Debug.ExtendedBookingDate", DebugOnlyMessage = "Debug.DebugOnlyMessage", + DebugButtonLabel = "Debug.DebugButtonLabel", }