From b6f9467fc15f91c5ee54d0fcba26dbf284cde619 Mon Sep 17 00:00:00 2001 From: Tagaishi Date: Tue, 22 Aug 2023 23:31:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20better=20handle=20of=20multipart?= =?UTF-8?q?=20string=20for=20category?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/en/layout/common.json | 2 +- .../Dashboard/Wrappers/Category/CategoryEditMenu.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/locales/en/layout/common.json b/public/locales/en/layout/common.json index b676bd888..e11d064d4 100644 --- a/public/locales/en/layout/common.json +++ b/public/locales/en/layout/common.json @@ -18,7 +18,7 @@ "menu": { "moveUp": "Move up", "moveDown": "Move down", - "addCategory": "Add category", + "addCategory": "Add category {{location}}", "addAbove": "above", "addBelow": "below" } diff --git a/src/components/Dashboard/Wrappers/Category/CategoryEditMenu.tsx b/src/components/Dashboard/Wrappers/Category/CategoryEditMenu.tsx index 2f5557088..3d68e4241 100644 --- a/src/components/Dashboard/Wrappers/Category/CategoryEditMenu.tsx +++ b/src/components/Dashboard/Wrappers/Category/CategoryEditMenu.tsx @@ -48,13 +48,13 @@ export const CategoryEditMenu = ({ category }: CategoryEditMenuProps) => { {t('menu.moveDown')} - {t('menu.addCategory')} + {t('menu.addCategory',{location: ''})} } onClick={addCategoryAbove}> - {t('menu.addCategory') + ' ' + t('menu.addAbove')} + {t('menu.addCategory',{location: t('menu.addAbove')})} } onClick={addCategoryBelow}> - {t('menu.addCategory') + ' ' + t('menu.addBelow')} + {t('menu.addCategory',{location: t('menu.addBelow')})}