Improve sendTest msg

This commit is contained in:
Yang Luo 2023-08-19 12:47:51 +08:00
parent 914128a78a
commit 4468859795
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ export function sendTestEmail(provider, email) {
testEmailProvider(provider, email)
.then((res) => {
if (res.status === "ok") {
Setting.showMessage("success", `${i18next.t("provider:Email sent successfully")}`);
Setting.showMessage("success", i18next.t("general:Successfully sent"));
} else {
Setting.showMessage("error", res.msg);
}

View File

@ -19,7 +19,7 @@ export function sendTestNotification(provider, notification) {
testNotificationProvider(provider, notification)
.then((res) => {
if (res.status === "ok") {
Setting.showMessage("success", `${i18next.t("provider:Notification sent successfully")}`);
Setting.showMessage("success", i18next.t("general:Successfully sent"));
} else {
Setting.showMessage("error", res.msg);
}

View File

@ -19,7 +19,7 @@ export function sendTestSms(provider, phone) {
testSmsProvider(provider, phone)
.then((res) => {
if (res.status === "ok") {
Setting.showMessage("success", `${i18next.t("provider:SMS sent successfully")}`);
Setting.showMessage("success", i18next.t("general:Successfully sent"));
} else {
Setting.showMessage("error", res.msg);
}