From 4059ba66741f997ee5e37cfc4c4d71e4f1a6f382 Mon Sep 17 00:00:00 2001 From: Ikechi Date: Fri, 5 Aug 2022 08:43:37 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=8C=90=20Internationalization=20for?= =?UTF-8?q?=20cancel=20orders?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Wallet/Table/OpenOrdersTable.jsx | 2 +- locales/ch/orders.json | 3 ++- locales/ct/orders.json | 3 ++- locales/de/orders.json | 5 +++-- locales/en/orders.json | 3 ++- locales/es/orders.json | 3 ++- locales/fr/orders.json | 3 ++- locales/hu/orders.json | 3 ++- locales/id/orders.json | 3 ++- locales/in/orders.json | 3 ++- locales/iq/orders.json | 6 ++---- locales/ir/orders.json | 3 ++- locales/it/orders.json | 3 ++- locales/jp/orders.json | 3 ++- locales/kr/orders.json | 3 ++- locales/my/orders.json | 3 ++- locales/nl/orders.json | 5 +++-- locales/no/orders.json | 5 +++-- locales/pl/orders.json | 3 ++- locales/ru/orders.json | 3 ++- locales/se/orders.json | 3 ++- locales/sk/orders.json | 3 ++- locales/th/orders.json | 3 ++- locales/tr/orders.json | 3 ++- locales/vn/orders.json | 3 ++- 25 files changed, 52 insertions(+), 31 deletions(-) diff --git a/components/Wallet/Table/OpenOrdersTable.jsx b/components/Wallet/Table/OpenOrdersTable.jsx index 971b2fc8e..bf8791467 100644 --- a/components/Wallet/Table/OpenOrdersTable.jsx +++ b/components/Wallet/Table/OpenOrdersTable.jsx @@ -152,7 +152,7 @@ export function OpenOrdersTable({ orders: _orders }) { Cell: DefaultCell }, { - Header: '', + Header: t('cancel-all'), accessor: 'cancel', Cell: OrderCancelCell, disableSortBy: true diff --git a/locales/ch/orders.json b/locales/ch/orders.json index 8181ed6c4..16b8c8c84 100644 --- a/locales/ch/orders.json +++ b/locales/ch/orders.json @@ -21,5 +21,6 @@ "error": "出了些问题", "name": "名称", "buy": "买", - "sell": "卖" + "sell": "卖", + "cancel-all": "全部取消" } \ No newline at end of file diff --git a/locales/ct/orders.json b/locales/ct/orders.json index 91dcf0d1e..f7a1b1bf0 100644 --- a/locales/ct/orders.json +++ b/locales/ct/orders.json @@ -21,5 +21,6 @@ "error": "Alguna cosa ha anat malament.", "name": "Nom", "buy": "Comprar", - "sell": "Vendre" + "sell": "Vendre", + "cancel-all": "Cancel·la-ho tot" } \ No newline at end of file diff --git a/locales/de/orders.json b/locales/de/orders.json index 988e4303b..76c144638 100644 --- a/locales/de/orders.json +++ b/locales/de/orders.json @@ -1,5 +1,5 @@ { - "open-orders": "Offene Orders", + "open-orders": "Åben ordre", "order-history": "Order Historie", "assets": "Depotbestand", "date": "Datum", @@ -21,5 +21,6 @@ "error": "Etwas ist Schiefgelaufen.", "name": "Name", "buy": "Kaufen", - "sell": "Verkaufen" + "sell": "Verkaufen", + "cancel-all": "Annuller alle" } \ No newline at end of file diff --git a/locales/en/orders.json b/locales/en/orders.json index 2bc995d19..fe208d8cf 100644 --- a/locales/en/orders.json +++ b/locales/en/orders.json @@ -21,5 +21,6 @@ "error": "Something went wrong.", "name": "Name", "buy": "Buy", - "sell": "Sell" + "sell": "Sell", + "cancel-all": "Cancel All" } \ No newline at end of file diff --git a/locales/es/orders.json b/locales/es/orders.json index be67a6777..2a5085ea1 100644 --- a/locales/es/orders.json +++ b/locales/es/orders.json @@ -21,5 +21,6 @@ "error": "Something went wrong.", "name": "nombre", "buy": "comprar", - "sell": "vender" + "sell": "vender", + "cancel-all": "Cancelalo todo" } \ No newline at end of file diff --git a/locales/fr/orders.json b/locales/fr/orders.json index 187074d26..c838a4957 100644 --- a/locales/fr/orders.json +++ b/locales/fr/orders.json @@ -21,5 +21,6 @@ "error": "Une erreur s'est produite.", "name": "NOM", "buy": "ACHETER", - "sell": "VENDRE" + "sell": "VENDRE", + "cancel-all": "Annuler tout" } \ No newline at end of file diff --git a/locales/hu/orders.json b/locales/hu/orders.json index 544ab69b5..05e51176a 100644 --- a/locales/hu/orders.json +++ b/locales/hu/orders.json @@ -21,5 +21,6 @@ "error": "Valami hiba történt", "name": "NÉV", "buy": "VÉTEL", - "sell": "ELADÁS" + "sell": "ELADÁS", + "cancel-all": "Összes törlése" } \ No newline at end of file diff --git a/locales/id/orders.json b/locales/id/orders.json index 16ecfe2c5..1771c2256 100644 --- a/locales/id/orders.json +++ b/locales/id/orders.json @@ -21,5 +21,6 @@ "error": "Ada kesalahan.", "name": "NAMA", "buy": "BELI", - "sell": "JUAL" + "sell": "JUAL", + "cancel-all": "Batalkan Semua" } \ No newline at end of file diff --git a/locales/in/orders.json b/locales/in/orders.json index 0c89819b1..b06caa01e 100644 --- a/locales/in/orders.json +++ b/locales/in/orders.json @@ -21,5 +21,6 @@ "error": "कुछ गलत हो गया।.", "name": "नाम", "buy": "खरीदें", - "sell": "बेच दो" + "sell": "बेच दो", + "cancel-all": "सबै रद्द गर्नुहोस्" } \ No newline at end of file diff --git a/locales/iq/orders.json b/locales/iq/orders.json index f1f7421d5..44af322ef 100644 --- a/locales/iq/orders.json +++ b/locales/iq/orders.json @@ -21,8 +21,6 @@ "error": "هەڵەیەک روویدا", "name": " ناو", "buy": "کڕین", - "sell": "فرۆشتن" - - - + "sell": "فرۆشتن", + "cancel-all": "تمام منسوخ کریں۔" } \ No newline at end of file diff --git a/locales/ir/orders.json b/locales/ir/orders.json index 13d62ae77..a154d3f3d 100644 --- a/locales/ir/orders.json +++ b/locales/ir/orders.json @@ -21,5 +21,6 @@ "error": "خطا در لغو سفارش", "name": "نام", "buy": "خرید", - "sell": "فروش" + "sell": "فروش", + "cancel-all": "لغو همه " } \ No newline at end of file diff --git a/locales/it/orders.json b/locales/it/orders.json index 1c5221af5..81e01cf6d 100644 --- a/locales/it/orders.json +++ b/locales/it/orders.json @@ -21,5 +21,6 @@ "error": "Qualcosa non ha funzionato.", "name": "NOME", "buy": "ACQUISTA", - "sell": "VENDI" + "sell": "VENDI", + "cancel-all": "Cancella tutto" } \ No newline at end of file diff --git a/locales/jp/orders.json b/locales/jp/orders.json index 39fe69403..d51410e66 100644 --- a/locales/jp/orders.json +++ b/locales/jp/orders.json @@ -21,5 +21,6 @@ "error": "エラーが発生しました.", "name": "名前", "buy": "買", - "sell": "売" + "sell": "売", + "cancel-all": "すべてキャンセル" } \ No newline at end of file diff --git a/locales/kr/orders.json b/locales/kr/orders.json index eef7cad1f..99f65caf2 100644 --- a/locales/kr/orders.json +++ b/locales/kr/orders.json @@ -21,5 +21,6 @@ "error": "오류가 발생하였습니다..", "name": "이름", "buy": "매수", - "sell": "매도" + "sell": "매도", + "cancel-all": "모두 취소" } \ No newline at end of file diff --git a/locales/my/orders.json b/locales/my/orders.json index 1b91c9d8c..3f12a3339 100644 --- a/locales/my/orders.json +++ b/locales/my/orders.json @@ -21,5 +21,6 @@ "error": "Kegagalan berlaku ", "name": "NAMA", "buy": "BELI", - "sell": "JUAL" + "sell": "JUAL", + "cancel-all": "Batalkan Semua" } \ No newline at end of file diff --git a/locales/nl/orders.json b/locales/nl/orders.json index 543cc207e..c4c274508 100644 --- a/locales/nl/orders.json +++ b/locales/nl/orders.json @@ -1,5 +1,5 @@ { - "open-orders": "Open Orders", + "open-orders": "Openstaande bestellingen", "order-history": "Order geschiedenis", "assets": "Middelen", "date": "Datum", @@ -21,5 +21,6 @@ "error": "Er ging iets fout", "name": "Naam", "buy": "Koop", - "sell": "Verkoop" + "sell": "Verkoop", + "cancel-all": "Verwijder alles" } \ No newline at end of file diff --git a/locales/no/orders.json b/locales/no/orders.json index 7c156062e..b0c5d6e26 100644 --- a/locales/no/orders.json +++ b/locales/no/orders.json @@ -1,6 +1,6 @@ { "open-orders": "ÅPNE BESTILLINGER", - "order-history": "ORDREHISTORIKK", + "order-history": "Bestelgeschiedenis", "assets": "EIENDELER", "date": "DATO", "pair": "PAIR (handelspar)", @@ -21,5 +21,6 @@ "error": "Noe gikk galt.", "name": "NAVN", "buy": "Kjøp", - "sell": "Salg" + "sell": "Salg", + "cancel-all": "Verwijder alles" } \ No newline at end of file diff --git a/locales/pl/orders.json b/locales/pl/orders.json index c5e394f7d..bd637d996 100644 --- a/locales/pl/orders.json +++ b/locales/pl/orders.json @@ -21,5 +21,6 @@ "error": "Cos poszlo nie tak ..", "name": "Nazwa jednostki", "buy": "Kup", - "sell": "Sprzedaj" + "sell": "Sprzedaj", + "cancel-all": "Anulować całość" } \ No newline at end of file diff --git a/locales/ru/orders.json b/locales/ru/orders.json index 3394934c9..abb6e0607 100644 --- a/locales/ru/orders.json +++ b/locales/ru/orders.json @@ -21,5 +21,6 @@ "error": "Что-то пошло не так.", "name": "Название", "buy": "Купить", - "sell": "Продать" + "sell": "Продать", + "cancel-all": "Отменить все" } \ No newline at end of file diff --git a/locales/se/orders.json b/locales/se/orders.json index e6a15d2d0..46d7b71a3 100644 --- a/locales/se/orders.json +++ b/locales/se/orders.json @@ -21,5 +21,6 @@ "error": "Något gick fel", "name": "NAMN", "buy": "KÖP", - "sell": "SÄLJ" + "sell": "SÄLJ", + "cancel-all": "Avbryt alla" } \ No newline at end of file diff --git a/locales/sk/orders.json b/locales/sk/orders.json index 2fc701272..5ce5c4d13 100644 --- a/locales/sk/orders.json +++ b/locales/sk/orders.json @@ -21,5 +21,6 @@ "error": "Niečo sa pokazilo", "name": "Názov", "buy": "Kúpiť", - "sell": "Predať" + "sell": "Predať", + "cancel-all": "Zrušiť všetko" } \ No newline at end of file diff --git a/locales/th/orders.json b/locales/th/orders.json index 94f0ca49d..06fd8164e 100644 --- a/locales/th/orders.json +++ b/locales/th/orders.json @@ -21,5 +21,6 @@ "error": "Something went wrong.", "name": "ชื่อ", "buy": "ซื้ื้อ", - "sell": "ขาย" + "sell": "ขาย", + "cancel-all": "ยกเลิกทั้งหมด" } \ No newline at end of file diff --git a/locales/tr/orders.json b/locales/tr/orders.json index fbcd76fa9..0f8cf63de 100644 --- a/locales/tr/orders.json +++ b/locales/tr/orders.json @@ -21,5 +21,6 @@ "error": "Bir şeyler ters gitti", "name": "İSİM", "buy": "AL ", - "sell": "SAT" + "sell": "SAT", + "cancel-all": "Hepsini iptal et" } \ No newline at end of file diff --git a/locales/vn/orders.json b/locales/vn/orders.json index 63225b011..3d203fa14 100644 --- a/locales/vn/orders.json +++ b/locales/vn/orders.json @@ -21,5 +21,6 @@ "error": "Có lỗi", "name": "Tên", "buy": "Bán", - "sell": "Bán" + "sell": "Bán", + "cancel-all": "Hủy bỏ tất cả" } \ No newline at end of file From ce207cf852d20fab42cc86a84bc588588f253c5d Mon Sep 17 00:00:00 2001 From: Ikechi Date: Fri, 5 Aug 2022 09:55:16 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20Update=20styling=20for=20can?= =?UTF-8?q?cel=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Wallet/Table/OpenOrdersTable.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Wallet/Table/OpenOrdersTable.jsx b/components/Wallet/Table/OpenOrdersTable.jsx index bf8791467..a3e23624f 100644 --- a/components/Wallet/Table/OpenOrdersTable.jsx +++ b/components/Wallet/Table/OpenOrdersTable.jsx @@ -44,7 +44,8 @@ const OrderCancelButton = styled.button` color: inherit; &:hover { - background: ${({ theme }) => theme.palette.red['500']}; + background: ${({ theme }) => theme.palette.blue['700']}; + color: ${({ theme }) => theme.palette.gray['000']}; } `