Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

delete button text was not translated

Amruth Pillaie092e8cc0a98
diff --git a/src/i18n/locales/en/app/app.json b/src/i18n/locales/en/app/app.json
index 99b368597..bcf8db166 100644
--- a/src/i18n/locales/en/app/app.json
+++ b/src/i18n/locales/en/app/app.json
@@ -14,6 +14,9 @@
"buttons": {
"add": {
"label": "Add"
+ },
+ "delete": {
+ "label": "Delete"
}
},
"printDialog": {
diff --git a/src/shared/ItemActions.js b/src/shared/ItemActions.js
index 31317f123..526bf35a2 100644
--- a/src/shared/ItemActions.js
+++ b/src/shared/ItemActions.js
@@ -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>