From 371f5411f5db7ff854024464cf2c82608fba81a9 Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Wed, 27 Dec 2023 11:38:12 +0100 Subject: [PATCH] Make feeLitsMaterialNumberText into translatable text with a placeholder --- src/apps/fee-list/FeeList.dev.tsx | 4 ++-- src/apps/fee-list/stackable-fees/fee-info.tsx | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/apps/fee-list/FeeList.dev.tsx b/src/apps/fee-list/FeeList.dev.tsx index ce64260a58..47d27f45b9 100644 --- a/src/apps/fee-list/FeeList.dev.tsx +++ b/src/apps/fee-list/FeeList.dev.tsx @@ -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" } } }, diff --git a/src/apps/fee-list/stackable-fees/fee-info.tsx b/src/apps/fee-list/stackable-fees/fee-info.tsx index 3b0dca237c..704e826aaa 100644 --- a/src/apps/fee-list/stackable-fees/fee-info.tsx +++ b/src/apps/fee-list/stackable-fees/fee-info.tsx @@ -51,7 +51,9 @@ const FeeInfo: FC = ({

- {`${t("feeLitsMaterialNumberText")} ${materialItemNumber}`} + {t("feeLitsMaterialNumberText", { + placeholders: { "@materialNumber": materialItemNumber } + })}

{children}