Skip to content

Commit

Permalink
Improve Preparation localization further
Browse files Browse the repository at this point in the history
  • Loading branch information
grantfitzsimmons committed Jan 19, 2025
1 parent 268110e commit 634aef1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ function PreparationReturn({
<Button.DialogClose>{commonText.cancel()}</Button.DialogClose>
<Button.Info
disabled={!canSelectAll}
title={interactionsText.returnAllPreparations()}
title=
{interactionsText.returnAllPreparations({
preparationTable: String(tables.Preparation.label).toLowerCase(),
})}
onClick={(): void =>
setState(
state.map(({ unresolved, remarks }) => ({
Expand Down Expand Up @@ -194,7 +197,10 @@ function PreparationReturn({
</Button.Info>
<Submit.Success
form={id('form')}
title={interactionsText.returnSelectedPreparations()}
title=
{interactionsText.returnSelectedPreparations({
preparationTable: String(tables.Preparation.label).toLowerCase(),
})}
>
{commonText.apply()}
</Submit.Success>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ export function PrepDialog({
<Button.DialogClose>{commonText.cancel()}</Button.DialogClose>
<Button.Info
disabled={!canSelectAll}
title={interactionsText.selectAllAvailablePreparations()}
title=
{interactionsText.selectAllAvailablePreparations({
preparationTable: String(tables.Preparation.label).toLowerCase(),
})}
onClick={(): void =>
setSelected(preparations.map(({ available }) => available))
}
Expand Down

0 comments on commit 634aef1

Please sign in to comment.