delete button text was not translated

This commit is contained in:
Amruth Pillai
2020-05-17 21:51:12 +05:30
parent 76f0d45a7d
commit e092e8cc0a
2 changed files with 7 additions and 1 deletions

View File

@ -14,6 +14,9 @@
"buttons": {
"add": {
"label": "Add"
},
"delete": {
"label": "Delete"
}
},
"printDialog": {

View File

@ -1,9 +1,12 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import Checkbox from './Checkbox';
import { deleteItem, moveItemUp, moveItemDown } from '../utils';
const ItemActions = ({ dispatch, first, identifier, item, last, onChange, type }) => {
const { t } = useTranslation();
return (
<div className="flex justify-between">
<div className="flex items-center">
@ -22,7 +25,7 @@ const ItemActions = ({ dispatch, first, identifier, item, last, onChange, type }
>
<div className="flex items-center">
<i className="material-icons mr-2 font-bold text-base">delete</i>
<span className="text-sm">Delete</span>
<span className="text-sm">{t('buttons.delete.label')}</span>
</div>
</button>
</div>