Skip to content

Commit

Permalink
Update labels
Browse files Browse the repository at this point in the history
  • Loading branch information
silviot committed Mar 23, 2024
1 parent b34c897 commit add41bf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
8 changes: 6 additions & 2 deletions packages/client/src/pages/customer_area/index.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -154,7 +158,7 @@ const CustomerArea: React.FC = () => {
}
// aria-label={t(SlotsAria.EnableEdit)}
>
Debug
{t(Debug.DebugButtonLabel)}
</Button>
);

Expand Down
7 changes: 4 additions & 3 deletions packages/translations/src/dict/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
7 changes: 4 additions & 3 deletions packages/translations/src/dict/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
1 change: 1 addition & 0 deletions packages/translations/src/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,4 +476,5 @@ export enum Debug {
SystemDate = "Debug.SystemDate",
ExtendedBookingDate = "Debug.ExtendedBookingDate",
DebugOnlyMessage = "Debug.DebugOnlyMessage",
DebugButtonLabel = "Debug.DebugButtonLabel",
}

0 comments on commit add41bf

Please sign in to comment.