From 9c7b2f7fcefbe4f36d76c5452192db0c77e6c0da Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 10 Jul 2023 17:01:34 +0300 Subject: [PATCH] TW-830: Collectibles Manage dropdown. Fix QA. 2 decimals for unlettered numbers --- public/_locales/de/messages.json | 2 +- public/_locales/en/messages.json | 2 +- public/_locales/pt/messages.json | 2 +- public/_locales/tr/messages.json | 2 +- src/app/atoms/Money.tsx | 2 +- src/lib/i18n/numbers.ts | 20 ++++++++++++-------- 6 files changed, 17 insertions(+), 13 deletions(-) diff --git a/public/_locales/de/messages.json b/public/_locales/de/messages.json index 45e311cb4..f994b218b 100644 --- a/public/_locales/de/messages.json +++ b/public/_locales/de/messages.json @@ -1856,7 +1856,7 @@ "message": "Es wurden keine passenden dApps gefunden" }, "thousandFormat": { - "message": "$thousand$k", + "message": "$thousand$K", "placeholders": { "thousand": { "content": "$1" diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index f3ab62f22..69cdf9403 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -2149,7 +2149,7 @@ "message": "No matching dApps were found" }, "thousandFormat": { - "message": "$thousand$k", + "message": "$thousand$K", "placeholders": { "thousand": { "content": "$1" diff --git a/public/_locales/pt/messages.json b/public/_locales/pt/messages.json index 0747a117c..33f7ed617 100644 --- a/public/_locales/pt/messages.json +++ b/public/_locales/pt/messages.json @@ -1856,7 +1856,7 @@ "message": "Não foram encontrados dApps correspondentes" }, "thousandFormat": { - "message": "$thousand$k", + "message": "$thousand$K", "placeholders": { "thousand": { "content": "$1" diff --git a/public/_locales/tr/messages.json b/public/_locales/tr/messages.json index a079ac6e9..675d4ffc2 100644 --- a/public/_locales/tr/messages.json +++ b/public/_locales/tr/messages.json @@ -1856,7 +1856,7 @@ "message": "Eşleşen dApps bulunamadı" }, "thousandFormat": { - "message": "$thousand$k", + "message": "$thousand$K", "placeholders": { "thousand": { "content": "$1" diff --git a/src/app/atoms/Money.tsx b/src/app/atoms/Money.tsx index ea9e136f9..5b6b40195 100644 --- a/src/app/atoms/Money.tsx +++ b/src/app/atoms/Money.tsx @@ -68,7 +68,7 @@ const Money = memo( ); } - if (!fiat && decimalsLength > cryptoDecimals && !shortened) { + if (!fiat && !shortened && decimalsLength > cryptoDecimals) { return (