From 55e1c9f34403a98bfb26ec2d16a28a46586e38eb Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Mon, 1 Jan 2024 22:40:11 +0000 Subject: [PATCH] Pass in token symbol in insufficient funds message (#5089) --- frontend/app/src/components/home/upgrade/Payment.svelte | 2 +- frontend/app/src/i18n/cn.json | 2 +- frontend/app/src/i18n/de.json | 2 +- frontend/app/src/i18n/en.json | 2 +- frontend/app/src/i18n/es.json | 2 +- frontend/app/src/i18n/fr.json | 2 +- frontend/app/src/i18n/it.json | 2 +- frontend/app/src/i18n/iw.json | 2 +- frontend/app/src/i18n/jp.json | 2 +- frontend/app/src/i18n/ru.json | 2 +- frontend/app/src/i18n/vi.json | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/app/src/components/home/upgrade/Payment.svelte b/frontend/app/src/components/home/upgrade/Payment.svelte index 6188cca451..eaf32e3d66 100644 --- a/frontend/app/src/components/home/upgrade/Payment.svelte +++ b/frontend/app/src/components/home/upgrade/Payment.svelte @@ -191,7 +191,7 @@ {#if insufficientFunds && !refreshingBalance} {$_("upgrade.insufficientFunds", { - values: { amount: `${toPay} ICP` }, + values: { token: tokenDetails.symbol, amount: `${toPay} ${tokenDetails.symbol}` }, })} {/if} diff --git a/frontend/app/src/i18n/cn.json b/frontend/app/src/i18n/cn.json index e73b28c758..207c3ff746 100644 --- a/frontend/app/src/i18n/cn.json +++ b/frontend/app/src/i18n/cn.json @@ -829,7 +829,7 @@ "oneMonth": "一个月", "threeMonths": "三个月", "oneYear": "一年", - "insufficientFunds": "请确保您的 ICP 帐户至少包含 {amount}", + "insufficientFunds": "请确保您的 {token} 帐户至少包含 {amount}", "confirm": "确认", "allSupportedTokens": "所有支持的代币", "chatAndIcp": "ICP & 聊天", diff --git a/frontend/app/src/i18n/de.json b/frontend/app/src/i18n/de.json index d8e2f13995..297d37e080 100644 --- a/frontend/app/src/i18n/de.json +++ b/frontend/app/src/i18n/de.json @@ -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", diff --git a/frontend/app/src/i18n/en.json b/frontend/app/src/i18n/en.json index a328bc4c0f..c6d503ad33 100644 --- a/frontend/app/src/i18n/en.json +++ b/frontend/app/src/i18n/en.json @@ -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", diff --git a/frontend/app/src/i18n/es.json b/frontend/app/src/i18n/es.json index 66f9952776..97f6e7ae47 100644 --- a/frontend/app/src/i18n/es.json +++ b/frontend/app/src/i18n/es.json @@ -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", diff --git a/frontend/app/src/i18n/fr.json b/frontend/app/src/i18n/fr.json index db1098142d..67c5a466fc 100644 --- a/frontend/app/src/i18n/fr.json +++ b/frontend/app/src/i18n/fr.json @@ -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", diff --git a/frontend/app/src/i18n/it.json b/frontend/app/src/i18n/it.json index 3a5a6123c9..074820876c 100644 --- a/frontend/app/src/i18n/it.json +++ b/frontend/app/src/i18n/it.json @@ -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", diff --git a/frontend/app/src/i18n/iw.json b/frontend/app/src/i18n/iw.json index f866109d6e..d33ace0d71 100644 --- a/frontend/app/src/i18n/iw.json +++ b/frontend/app/src/i18n/iw.json @@ -827,7 +827,7 @@ "oneMonth": "חודש אחד", "threeMonths": "שלושה חודשים", "oneYear": "שנה אחת", - "insufficientFunds": "אנא ודא שחשבון ICP שלך מכיל לפחות {amount}", + "insufficientFunds": "אנא ודא שחשבון {token} שלך מכיל לפחות {amount}", "confirm": "לְאַשֵׁר", "allSupportedTokens": "כל האסימונים הנתמכים", "chatAndIcp": "ICP וצ'אט", diff --git a/frontend/app/src/i18n/jp.json b/frontend/app/src/i18n/jp.json index 7d3b298f12..70fd058dbe 100644 --- a/frontend/app/src/i18n/jp.json +++ b/frontend/app/src/i18n/jp.json @@ -830,7 +830,7 @@ "oneMonth": "一か月", "threeMonths": "3ヶ月", "oneYear": "1年", - "insufficientFunds": "ICP アカウントに少なくとも {amount} が含まれていることを確認してください", + "insufficientFunds": "{token} アカウントに少なくとも {amount} が含まれていることを確認してください", "confirm": "確認", "allSupportedTokens": "サポートされているすべてのトークン", "chatAndIcp": "ICP & chat", diff --git a/frontend/app/src/i18n/ru.json b/frontend/app/src/i18n/ru.json index ad92f88aa5..bea6d59532 100644 --- a/frontend/app/src/i18n/ru.json +++ b/frontend/app/src/i18n/ru.json @@ -829,7 +829,7 @@ "oneMonth": "Один месяц", "threeMonths": "Три месяца", "oneYear": "Один год", - "insufficientFunds": "Пожалуйста, убедитесь, что ваша учетная запись ICP содержит как минимум {amount}", + "insufficientFunds": "Пожалуйста, убедитесь, что ваша учетная запись {token} содержит как минимум {amount}", "confirm": "Подтверждать", "allSupportedTokens": "Все поддерживаемые токены", "chatAndIcp": "ICP и чат", diff --git a/frontend/app/src/i18n/vi.json b/frontend/app/src/i18n/vi.json index e0ac6377a3..e39789ac98 100644 --- a/frontend/app/src/i18n/vi.json +++ b/frontend/app/src/i18n/vi.json @@ -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",