Skip to content

Commit

Permalink
Pass in token symbol in insufficient funds message (#5089)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Jan 1, 2024
1 parent bd49f7c commit 55e1c9f
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion frontend/app/src/components/home/upgrade/Payment.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
{#if insufficientFunds && !refreshingBalance}
<ErrorMessage
>{$_("upgrade.insufficientFunds", {
values: { amount: `${toPay} ICP` },
values: { token: tokenDetails.symbol, amount: `${toPay} ${tokenDetails.symbol}` },
})}</ErrorMessage>
{/if}

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/i18n/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@
"oneMonth": "一个月",
"threeMonths": "三个月",
"oneYear": "一年",
"insufficientFunds": "请确保您的 ICP 帐户至少包含 {amount}",
"insufficientFunds": "请确保您的 {token} 帐户至少包含 {amount}",
"confirm": "确认",
"allSupportedTokens": "所有支持的代币",
"chatAndIcp": "ICP & 聊天",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@
"oneMonth": "Ein Monat",
"threeMonths": "Drei Monate",
"oneYear": "Ein Jahr",
"insufficientFunds": "Bitte stellen Sie sicher, dass Ihr ICP-Konto mindestens {amount} enthält",
"insufficientFunds": "Bitte stellen Sie sicher, dass Ihr {token}-Konto mindestens {amount} enthält",
"confirm": "Bestätigen",
"allSupportedTokens": "Alle unterstützten Token",
"chatAndIcp": "ICP & CHAT",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@
"threeMonths": "Three months",
"oneYear": "One year",
"lifetime": "Lifetime",
"insufficientFunds": "Please ensure that your ICP account contains at least {amount}",
"insufficientFunds": "Please ensure that your {token} account contains at least {amount}",
"confirm": "Confirm",
"allSupportedTokens": "All supported tokens",
"chatAndIcp": "ICP & CHAT",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@
"oneMonth": "Un mes",
"threeMonths": "Tres meses",
"oneYear": "Un año",
"insufficientFunds": "Asegúrese de que su cuenta ICP contenga al menos {amount}",
"insufficientFunds": "Asegúrese de que su cuenta {token} contenga al menos {amount}",
"confirm": "Confirmar",
"allSupportedTokens": "Todos los tokens admitidos",
"chatAndIcp": "ICP Y CHAT",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@
"oneMonth": "Un mois",
"threeMonths": "Trois mois",
"oneYear": "Un ans",
"insufficientFunds": "Veuillez vous assurer que votre compte ICP contient au moins {amount}",
"insufficientFunds": "Veuillez vous assurer que votre compte {token} contient au moins {amount}",
"confirm": "Confirmer",
"allSupportedTokens": "Tous les jetons pris en charge",
"chatAndIcp": "PCI & CHAT",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@
"oneMonth": "Un mese",
"threeMonths": "Tre mesi",
"oneYear": "Un anno",
"insufficientFunds": "Assicurati che il tuo account ICP contenga almeno {amount}",
"insufficientFunds": "Assicurati che il tuo account {token} contenga almeno {amount}",
"confirm": "Confermare",
"allSupportedTokens": "Tutti i token supportati",
"chatAndIcp": "PIC & CHAT",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/i18n/iw.json
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@
"oneMonth": "חודש אחד",
"threeMonths": "שלושה חודשים",
"oneYear": "שנה אחת",
"insufficientFunds": "אנא ודא שחשבון ICP שלך מכיל לפחות {amount}",
"insufficientFunds": "אנא ודא שחשבון {token} שלך מכיל לפחות {amount}",
"confirm": "לְאַשֵׁר",
"allSupportedTokens": "כל האסימונים הנתמכים",
"chatAndIcp": "ICP וצ'אט",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/i18n/jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@
"oneMonth": "一か月",
"threeMonths": "3ヶ月",
"oneYear": "1年",
"insufficientFunds": "ICP アカウントに少なくとも {amount} が含まれていることを確認してください",
"insufficientFunds": "{token} アカウントに少なくとも {amount} が含まれていることを確認してください",
"confirm": "確認",
"allSupportedTokens": "サポートされているすべてのトークン",
"chatAndIcp": "ICP & chat",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@
"oneMonth": "Один месяц",
"threeMonths": "Три месяца",
"oneYear": "Один год",
"insufficientFunds": "Пожалуйста, убедитесь, что ваша учетная запись ICP содержит как минимум {amount}",
"insufficientFunds": "Пожалуйста, убедитесь, что ваша учетная запись {token} содержит как минимум {amount}",
"confirm": "Подтверждать",
"allSupportedTokens": "Все поддерживаемые токены",
"chatAndIcp": "ICP и чат",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/i18n/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@
"oneMonth": "Mot thang",
"threeMonths": "Ba tháng",
"oneYear": "Một năm",
"insufficientFunds": "Vui lòng đảm bảo rằng tài khoản ICP của bạn chứa ít nhất {amount}",
"insufficientFunds": "Vui lòng đảm bảo rằng tài khoản {token} của bạn chứa ít nhất {amount}",
"confirm": "Xác nhận",
"allSupportedTokens": "Tất cả các mã thông báo được hỗ trợ",
"chatAndIcp": "ICP & TRÒ CHUYỆN",
Expand Down

0 comments on commit 55e1c9f

Please sign in to comment.