🌐 better handle of multipart string for category

This commit is contained in:
Tagaishi
2023-08-22 23:31:20 +02:00
parent 608cc78966
commit b6f9467fc1
2 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@
"menu": {
"moveUp": "Move up",
"moveDown": "Move down",
"addCategory": "Add category",
"addCategory": "Add category {{location}}",
"addAbove": "above",
"addBelow": "below"
}

View File

@@ -48,13 +48,13 @@ export const CategoryEditMenu = ({ category }: CategoryEditMenuProps) => {
{t('menu.moveDown')}
</Menu.Item>
<Menu.Label>
{t('menu.addCategory')}
{t('menu.addCategory',{location: ''})}
</Menu.Label>
<Menu.Item icon={<IconRowInsertTop size={20} />} onClick={addCategoryAbove}>
{t('menu.addCategory') + ' ' + t('menu.addAbove')}
{t('menu.addCategory',{location: t('menu.addAbove')})}
</Menu.Item>
<Menu.Item icon={<IconRowInsertBottom size={20} />} onClick={addCategoryBelow}>
{t('menu.addCategory') + ' ' + t('menu.addBelow')}
{t('menu.addCategory',{location: t('menu.addBelow')})}
</Menu.Item>
</Menu.Dropdown>
</Menu>