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!

use translated value for Add

Amruth Pillaiadf7682cf4b7
diff --git a/src/shared/AddItemButton.js b/src/shared/AddItemButton.js
index 872e09f76..eb91746a6 100644
--- a/src/shared/AddItemButton.js
+++ b/src/shared/AddItemButton.js
@@ -1,6 +1,9 @@
import React from 'react';
+import { useTranslation } from 'react-i18next';
const AddItemButton = ({ onSubmit }) => {
+ const { t } = useTranslation();
+
return (
<div>
<button
@@ -10,7 +13,7 @@ const AddItemButton = ({ onSubmit }) => {
>
<div className="flex items-center">
<i className="material-icons mr-2 font-bold text-base">add</i>
- <span className="text-sm">Add</span>
+ <span className="text-sm">{t('buttons.add.label')}</span>
</div>
</button>
</div>