Skip to content

Commit 1714fb9

Browse files
authored
feat: update localization for trade alerts and bridge costs (#6566)
* feat: update localization for trade alerts and bridge costs * feat: update Spanish and Russian translations for trade alerts and job viewing
1 parent 66c6d07 commit 1714fb9

File tree

6 files changed

+28
-6
lines changed

6 files changed

+28
-6
lines changed

apps/cowswap-frontend/src/common/pure/ReceiveAmountInfo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function ReceiveAmountInfoTooltip(props: ReceiveAmountInfoTooltipProps):
7676
{!hasAnyFee && !isEoaNotEthFlow && <FeeItem title={t`Fee`} isSell={isSell} feeAmount={undefined} />}
7777

7878
{bridgeFee && (
79-
<FeeItem title="Bridge costs" isSell={isSell} feeAmount={bridgeFee?.amountInIntermediateCurrency} />
79+
<FeeItem title={t`Bridge costs`} isSell={isSell} feeAmount={bridgeFee?.amountInIntermediateCurrency} />
8080
)}
8181

8282
{!isFractionFalsy(amountAfterFees) && (

apps/cowswap-frontend/src/locales/en-US.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6285,3 +6285,10 @@ msgstr "Learn more"
62856285
#: apps/cowswap-frontend/src/modules/tradeWidgetAddons/containers/HighFeeWarning/highFeeWarningHelpers.ts
62866286
msgid "Swap and bridge costs are at least {formattedFeePercentage}% of the swap amount"
62876287
msgstr "Swap and bridge costs are at least {formattedFeePercentage}% of the swap amount"
6288+
6289+
# Notifications / jobs aria labels
6290+
msgid "Trade alert settings"
6291+
msgstr "Trade alert settings"
6292+
6293+
msgid "View jobs (opens in a new tab)"
6294+
msgstr "View jobs (opens in a new tab)"

apps/cowswap-frontend/src/locales/es-ES.po

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,7 +2737,7 @@ msgstr "CoW Swap utiliza un {accountProxyLabelString} dedicado, controlado solo
27372737

27382738
#: apps/cowswap-frontend/src/modules/notifications/pure/NotificationSettingsPopover.tsx
27392739
msgid "Trade alerts enabled"
2740-
msgstr ""
2740+
msgstr "Alertas de trading activadas"
27412741

27422742
#: apps/cowswap-frontend/src/common/utils/tradeSettingsTooltips.tsx
27432743
#~ msgid "Your swap expires and will not execute if it is pending for longer than the selected duration.<0/><1/>{INPUT_OUTPUT_EXPLANATION}"
@@ -2746,7 +2746,7 @@ msgstr ""
27462746
#: apps/cowswap-frontend/src/common/pure/NetworkCostsSuffix/index.tsx
27472747
#: apps/cowswap-frontend/src/modules/trade/pure/RowFeeContent/index.tsx
27482748
msgid "gas"
2749-
msgstr ""
2749+
msgstr "gas"
27502750

27512751
#: apps/cowswap-frontend/src/modules/hooksStore/pure/HookListItem/index.tsx
27522752
msgid "details"
@@ -6273,3 +6273,10 @@ msgstr "Aprende más"
62736273
msgid "Swap and bridge costs are at least {formattedFeePercentage}% of the swap amount"
62746274
msgstr "Los costos de intercambio y puente son por lo menos {formattedFeePercentage}% del monto de intercambio"
62756275

6276+
# Receive amount labels
6277+
# Notifications / jobs aria labels
6278+
msgid "Trade alert settings"
6279+
msgstr "Configuración de alertas de trading"
6280+
6281+
msgid "View jobs (opens in a new tab)"
6282+
msgstr "Ver trabajos (se abre en una pestaña nueva)"

apps/cowswap-frontend/src/locales/ru-RU.po

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2737,7 +2737,7 @@ msgstr "CoW Swap использует выделенный {accountProxyLabelStr
27372737

27382738
#: apps/cowswap-frontend/src/modules/notifications/pure/NotificationSettingsPopover.tsx
27392739
msgid "Trade alerts enabled"
2740-
msgstr ""
2740+
msgstr "Уведомления о сделках включены"
27412741

27422742
#: apps/cowswap-frontend/src/common/utils/tradeSettingsTooltips.tsx
27432743
#~ msgid "Your swap expires and will not execute if it is pending for longer than the selected duration.<0/><1/>{INPUT_OUTPUT_EXPLANATION}"
@@ -6273,3 +6273,10 @@ msgstr "Узнать больше"
62736273
msgid "Swap and bridge costs are at least {formattedFeePercentage}% of the swap amount"
62746274
msgstr "Затраты на замену и мост составляют не менее {formattedFeePercentage}% от суммы замены"
62756275

6276+
# Receive amount labels
6277+
# Notifications / jobs aria labels
6278+
msgid "Trade alert settings"
6279+
msgstr "Настройки уведомлений о сделках"
6280+
6281+
msgid "View jobs (opens in a new tab)"
6282+
msgstr "Просмотр заданий (откроется в новой вкладке)"

apps/cowswap-frontend/src/modules/application/containers/App/CowSpeechBubble.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function CowSpeechBubble({ show, onClose }: CowSpeechBubbleProps): ReactN
5252
target="_blank"
5353
rel="noopener noreferrer"
5454
$visible={isTypingComplete}
55-
aria-label="View jobs (opens in a new tab)"
55+
aria-label={t`View jobs (opens in a new tab)`}
5656
data-click-event={toCowSwapGtmEvent({
5757
category: CowSwapAnalyticsCategory.COWSWAP,
5858
action: 'Click speech bubble jobs link',

apps/cowswap-frontend/src/modules/notifications/containers/NotificationSidebar/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import ICON_NOTIFICATION_SETTINGS from '@cowprotocol/assets/images/icon-notifica
44
import { useOnClickOutside } from '@cowprotocol/common-hooks'
55
import { useFeatureFlags } from '@cowprotocol/common-hooks'
66

7+
import { t } from '@lingui/core/macro'
78
import { Trans } from '@lingui/react/macro'
89
import SVG from 'react-inlinesvg'
910

@@ -89,7 +90,7 @@ function NotificationsHeader({
8990
>
9091
<NotificationSettingsIcon
9192
onClick={onToggleSettings}
92-
aria-label="Trade alert settings"
93+
aria-label={t`Trade alert settings`}
9394
data-click-event={toCowSwapGtmEvent({
9495
category: CowSwapAnalyticsCategory.NOTIFICATIONS,
9596
action: 'Open notification settings',

0 commit comments

Comments
 (0)