diff --git a/.changeset/gorgeous-cherries-eat.md b/.changeset/gorgeous-cherries-eat.md new file mode 100644 index 000000000000..4cb46603ba28 --- /dev/null +++ b/.changeset/gorgeous-cherries-eat.md @@ -0,0 +1,5 @@ +--- +"ledger-live-desktop": patch +--- + +Fix swap history status translations diff --git a/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/History/OperationRow.tsx b/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/History/OperationRow.tsx index 9616462078af..9850ee37c3b4 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/History/OperationRow.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/History/OperationRow.tsx @@ -10,6 +10,7 @@ import { import { MappedSwapOperation } from "@ledgerhq/live-common/exchange/swap/types"; import { getProviderName } from "@ledgerhq/live-common/exchange/swap/utils/index"; import React from "react"; +import { useTranslation } from "react-i18next"; import styled, { DefaultTheme } from "styled-components"; import Box from "~/renderer/components/Box"; import CryptoCurrencyIcon from "~/renderer/components/CryptoCurrencyIcon"; @@ -102,6 +103,7 @@ const OperationRow = ({ const fromCurrency = getAccountCurrency(fromAccount); const toCurrency = getAccountCurrency(toAccount); const dateFormatted = useDateFormatted(operation.date, hourFormat); + const { t } = useTranslation(); return ( openSwapOperationDetailsModal(mappedSwapOperation)} > - - {status} - - } - > + {t(`swap2.history.status.${status}`)}}> {isSwapOperationPending(status) ? ( diff --git a/apps/ledger-live-desktop/static/i18n/en/app.json b/apps/ledger-live-desktop/static/i18n/en/app.json index eb3ef9505a8a..e95ded22335b 100644 --- a/apps/ledger-live-desktop/static/i18n/en/app.json +++ b/apps/ledger-live-desktop/static/i18n/en/app.json @@ -369,7 +369,14 @@ "description": "Either you have not made any swaps yet, or Ledger Live has been reset in the meantime." }, "export": "Export operations", - "exporting": "Exporting..." + "exporting": "Exporting...", + "status": { + "pending": "Pending", + "onhold": "Onhold", + "expired": "Expired", + "finished": "Finished", + "refunded": "Refunded" + } }, "exchangeDrawer": { "title": "Confirm your Exchange",