commit 0c7e9f86c50db87cd2668e97357d8de4d3295ef7
parent aafa58dd95ef7785dfb454a45e2c08eb0ed6fdf9
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 9 Jul 2024 16:24:00 -0300
more missing i18n strings
Diffstat:
1 file changed, 35 insertions(+), 13 deletions(-)
diff --git a/packages/merchant-backoffice-ui/src/components/modal/index.tsx b/packages/merchant-backoffice-ui/src/components/modal/index.tsx
@@ -427,6 +427,7 @@ export function DeleteModal({
onCancel,
onConfirm,
}: DeleteModalProps): VNode {
+ const { i18n } = useTranslationContext();
return (
<ConfirmModal
label={`Delete instance`}
@@ -437,17 +438,27 @@ export function DeleteModal({
onConfirm={() => onConfirm(element.id)}
>
<p>
- If you delete the instance named <b>"{element.name}"</b> (ID:{" "}
- <b>{element.id}</b>), the merchant will no longer be able to process
- orders or refunds
+ <i18n.Translate>
+ If you delete the instance named <b>"{element.name}"</b>{" "}
+ (ID: <b>{element.id}</b>), the merchant will no longer be able to
+ process orders or refunds
+ </i18n.Translate>
</p>
<p>
- This action deletes the instance private key, but preserves all
- transaction data. You can still access that data after deleting the
- instance.
+ <i18n.Translate>
+ This action deletes the instance private key, but preserves all
+ transaction data. You can still access that data after deleting the
+ instance.
+ </i18n.Translate>
</p>
<p class="warning">
- Deleting an instance <b>cannot be undone</b>.
+ <i18n.Translate>
+ Deleting an instance{" "}
+ <b>
+ <i18n.Translate>cannot be undone</i18n.Translate>
+ </b>
+ .
+ </i18n.Translate>
</p>
</ConfirmModal>
);
@@ -458,6 +469,7 @@ export function PurgeModal({
onCancel,
onConfirm,
}: DeleteModalProps): VNode {
+ const { i18n } = useTranslationContext();
return (
<ConfirmModal
label={`Purge the instance`}
@@ -468,16 +480,26 @@ export function PurgeModal({
onConfirm={() => onConfirm(element.id)}
>
<p>
- If you purge the instance named <b>"{element.name}"</b> (ID:{" "}
- <b>{element.id}</b>), you will also delete all it's transaction
- data.
+ <i18n.Translate>
+ If you purge the instance named <b>"{element.name}"</b> (ID:{" "}
+ <b>{element.id}</b>), you will also delete all it's transaction
+ data.
+ </i18n.Translate>
</p>
<p>
- The instance will disappear from your list, and you will no longer be
- able to access it's data.
+ <i18n.Translate>
+ The instance will disappear from your list, and you will no longer be
+ able to access it's data.
+ </i18n.Translate>
</p>
<p class="warning">
- Purging an instance <b>cannot be undone</b>.
+ <i18n.Translate>
+ Purging an instance{" "}
+ <b>
+ <i18n.Translate>cannot be undone</i18n.Translate>
+ </b>
+ .
+ </i18n.Translate>
</p>
</ConfirmModal>
);