diff --git a/frontend/src/components/ContactModal/index.js b/frontend/src/components/ContactModal/index.js
index 326837d..b35650f 100644
--- a/frontend/src/components/ContactModal/index.js
+++ b/frontend/src/components/ContactModal/index.js
@@ -103,7 +103,7 @@ const ContactModal = ({ open, onClose, contactId }) => {
} else {
await api.post("/contacts", values);
}
- toast.success("Contact saved sucessfully!");
+ toast.success(i18n.t("contactModal.success"));
} catch (err) {
console.log(err);
if (err.response && err.response.data && err.response.data.error) {
diff --git a/frontend/src/components/MessageOptionsMenu/index.js b/frontend/src/components/MessageOptionsMenu/index.js
index 26bd94e..086698a 100644
--- a/frontend/src/components/MessageOptionsMenu/index.js
+++ b/frontend/src/components/MessageOptionsMenu/index.js
@@ -5,7 +5,7 @@ import { toast } from "react-toastify";
import MenuItem from "@material-ui/core/MenuItem";
import Menu from "@material-ui/core/Menu";
-// import { i18n } from "../../translate/i18n";
+import { i18n } from "../../translate/i18n";
import api from "../../services/api";
import ConfirmationModal from "../ConfirmationModal";
@@ -31,12 +31,12 @@ const MessageOptionsMenu = ({ messageId, menuOpen, handleClose, anchorEl }) => {
return (
<>
- This action cannot be reverted.
+ {i18n.t("messageOptionsMenu.confirmationModal.message")}
>
);
diff --git a/frontend/src/components/NotificationsPopOver/index.js b/frontend/src/components/NotificationsPopOver/index.js
index 932547e..ed53dbb 100644
--- a/frontend/src/components/NotificationsPopOver/index.js
+++ b/frontend/src/components/NotificationsPopOver/index.js
@@ -183,7 +183,7 @@ const NotificationsPopOver = () => {
{notifications.length === 0 ? (
- No tickets with unread messages.
+ {i18n.t("notifications.noTickets")}
) : (
notifications.map(ticket => (
diff --git a/frontend/src/components/UserModal/index.js b/frontend/src/components/UserModal/index.js
index 52a33e7..8b299dd 100644
--- a/frontend/src/components/UserModal/index.js
+++ b/frontend/src/components/UserModal/index.js
@@ -18,7 +18,7 @@ import InputLabel from "@material-ui/core/InputLabel";
import MenuItem from "@material-ui/core/MenuItem";
import FormControl from "@material-ui/core/FormControl";
-// import { i18n } from "../../translate/i18n";
+import { i18n } from "../../translate/i18n";
import api from "../../services/api";
@@ -105,7 +105,7 @@ const UserModal = ({ open, onClose, userId }) => {
} else {
await api.post("/users", values);
}
- toast.success("Success!");
+ toast.success(i18n.t("userModal.success"));
} catch (err) {
console.log(err);
if (err.response && err.response.data && err.response.data.error) {
@@ -119,7 +119,9 @@ const UserModal = ({ open, onClose, userId }) => {