Added all the strings in locale file for gb.

This commit is contained in:
Owaise Imdad committed 2025-05-19 23:25:36 +05:30
1 parent 6ba52156b8
commit 17dcdfcb06
2 files changed
+8 -4

No files matched your search

+5 -3
View File
@@ -2,11 +2,13 @@ import { useState } from "react";
import { networkService } from "../main";
import { useSelector } from "react-redux";
import { createToast } from "../Utils/toastUtils";
import { useTranslation } from "react-i18next";
const useSendTestEmail = () => {
const [isSending, setIsSending] = useState(false);
const [error, setError] = useState(null);
const user = useSelector((state) => state.auth.user);
const { t } = useTranslation();
const sendTestEmail = async () => {
try {
@@ -16,14 +18,14 @@ const useSendTestEmail = () => {
const response = await networkService.sendTestEmail({ to: user.email });
if (typeof response?.data?.data?.messageId !== "undefined") {
createToast({
body: "Test email sent successfully",
body: t("emailSent"),
});
} else {
throw new Error("Failed to send test email");
throw new Error(t("failedToSendEmail"));
}
} catch (error) {
createToast({
body: "Failed to send test email",
body: t("failedToSendEmail"),
});
setError(error);
} finally {
+3 -1
View File
@@ -537,5 +537,7 @@
"saving": "Saving..."
},
"uptimeCreateSelectURL": "Enter the URL or IP to monitor (e.g., https://example.com/ or 192.168.1.100) and add a clear display name that appears on the dashboard.",
"sendTestEmail": "Send test email"
"sendTestEmail": "Send test email",
"emailSent": "Email sent successfully",
"failedToSendEmail": "Failed to send email"
}