Skip to content

Commit

Permalink
Use localized Preparation table name
Browse files Browse the repository at this point in the history
  • Loading branch information
grantfitzsimmons committed Jan 18, 2025
1 parent 0c27b37 commit 81067b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,12 @@ export function ShowLoansCommand({
icon={icons.chat}
onClose={handleClose}
>
{!hasAnyInteractions ? (
<>{interactionsText.noInteractions()}</>
{!hasAnyInteractions ? (
<>
{interactionsText.noInteractions({
preparationTable: String(tables.Preparation.label).toLowerCase(),
})}
</>
) : (
<>
{Array.isArray(data.openLoans) && data.openLoans.length > 0 && (
Expand Down
3 changes: 2 additions & 1 deletion specifyweb/frontend/js_src/lib/localization/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export const interactionsText = createDictionary({
'de-ch': 'Interaktionen',
},
noInteractions: {
'en-us': 'There are no interactions linked to this preparation.',
comment: 'Example: There are no interactions linked to this {preparation}',
'en-us': 'There are no interactions linked to this {preparationTable:string}.',
},
addItems: {
'en-us': 'Add Items',
Expand Down

0 comments on commit 81067b5

Please sign in to comment.