Skip to content

Commit 0c1fd4d

Browse files
committed
firmware/dfuWindowsDriverInstallDialog: add Back button translation
1 parent dd322b5 commit 0c1fd4d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/firmware/dfuWindowsDriverInstallDialog/DfuWindowsDriverInstallDialog.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,46 +367,55 @@ const DfuWindowsDriverInstallDialog: React.VoidFunctionComponent = () => {
367367
<DialogStep
368368
id="1"
369369
panel={<Step1 />}
370+
backButtonProps={{ text: i18n.translate('backButton.label') }}
370371
nextButtonProps={{ text: i18n.translate('nextButton.label') }}
371372
/>
372373
<DialogStep
373374
id="2"
374375
panel={<Step2 hub={hub} />}
376+
backButtonProps={{ text: i18n.translate('backButton.label') }}
375377
nextButtonProps={{ text: i18n.translate('nextButton.label') }}
376378
/>
377379
<DialogStep
378380
id="3"
379381
panel={<Step3 hub={hub} />}
382+
backButtonProps={{ text: i18n.translate('backButton.label') }}
380383
nextButtonProps={{ text: i18n.translate('nextButton.label') }}
381384
/>
382385
<DialogStep
383386
id="4"
384387
panel={<Step4 hub={hub} />}
388+
backButtonProps={{ text: i18n.translate('backButton.label') }}
385389
nextButtonProps={{ text: i18n.translate('nextButton.label') }}
386390
/>
387391
<DialogStep
388392
id="5"
389393
panel={<Step5 hub={hub} />}
394+
backButtonProps={{ text: i18n.translate('backButton.label') }}
390395
nextButtonProps={{ text: i18n.translate('nextButton.label') }}
391396
/>
392397
<DialogStep
393398
id="6"
394399
panel={<Step6 hub={hub} />}
400+
backButtonProps={{ text: i18n.translate('backButton.label') }}
395401
nextButtonProps={{ text: i18n.translate('nextButton.label') }}
396402
/>
397403
<DialogStep
398404
id="7"
399405
panel={<Step7 hub={hub} />}
406+
backButtonProps={{ text: i18n.translate('backButton.label') }}
400407
nextButtonProps={{ text: i18n.translate('nextButton.label') }}
401408
/>
402409
<DialogStep
403410
id="8"
404411
panel={<Step8 />}
412+
backButtonProps={{ text: i18n.translate('backButton.label') }}
405413
nextButtonProps={{ text: i18n.translate('nextButton.label') }}
406414
/>
407415
<DialogStep
408416
id="9"
409417
panel={<Step9 hub={hub} />}
418+
backButtonProps={{ text: i18n.translate('backButton.label') }}
410419
nextButtonProps={{ text: i18n.translate('nextButton.label') }}
411420
/>
412421
</MultistepDialog>

src/firmware/dfuWindowsDriverInstallDialog/translations/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"title": "Windows DFU USB driver installation instructions",
3+
"backButton": {
4+
"label": "Back"
5+
},
36
"nextButton": {
47
"label": "Next"
58
},

0 commit comments

Comments
 (0)