Skip to content

Commit

Permalink
Make feeLitsMaterialNumberText into translatable text with a placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Dec 27, 2023
1 parent e841896 commit 371f541
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/apps/fee-list/FeeList.dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ export default {
},
feeListAlreadyPaidInfoText: {
defaultValue:
"Already paid? It can take up to 72 hours register the transaction.",
"Already paid? It can take up to 72 hours to register the transaction.",
control: { type: "text" }
},
feeLitsMaterialNumberText: {
defaultValue: "#",
defaultValue: "# @materialNumber",
control: { type: "text" }
}
},
Expand Down
4 changes: 3 additions & 1 deletion src/apps/fee-list/stackable-fees/fee-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ const FeeInfo: FC<FeeInfoProps> = ({
</div>
<div />
<p className="text-small-caption color-secondary-gray">
{`${t("feeLitsMaterialNumberText")} ${materialItemNumber}`}
{t("feeLitsMaterialNumberText", {
placeholders: { "@materialNumber": materialItemNumber }
})}
</p>
{children}
</div>
Expand Down

0 comments on commit 371f541

Please sign in to comment.