From 01f0074e826f4fd0e51c9525119cba6e21c1fb96 Mon Sep 17 00:00:00 2001 From: Kabin Date: Mon, 6 Jan 2025 14:20:52 +0545 Subject: [PATCH] chore: update locale key --- .../components/profile/UpdateEmailForm.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/vue-user/src/components/profile/UpdateEmailForm.vue b/packages/vue-user/src/components/profile/UpdateEmailForm.vue index 8acd341f3..fdbb305ec 100644 --- a/packages/vue-user/src/components/profile/UpdateEmailForm.vue +++ b/packages/vue-user/src/components/profile/UpdateEmailForm.vue @@ -2,7 +2,7 @@
@@ -37,8 +37,8 @@ const { setUser, user } = useUserStore(); const { t } = useI18n({ messages }); const errorMessages = { - invalid: t("profile.accountInfo.messages.invalid"), - required: t("profile.accountInfo.messages.email"), + invalid: t("user.profile.accountInfo.messages.invalid"), + required: t("user.profile.accountInfo.messages.email"), }; const loading = ref(false); @@ -55,13 +55,13 @@ const onSubmit = async (data: UpdateEmailFormData) => { if (config.user?.features?.signUp?.emailVerification && isSameEmail) { emitter.emit("notify", { - text: t("profile.accountInfo.messages.emailSent"), + text: t("user.profile.accountInfo.messages.emailSent"), type: "success", }); } else { setUser(userInfo.data); emitter.emit("notify", { - text: t("profile.accountInfo.messages.success"), + text: t("user.profile.accountInfo.messages.success"), type: "success", }); } @@ -70,35 +70,35 @@ const onSubmit = async (data: UpdateEmailFormData) => { } case "EMAIL_ALREADY_EXISTS_ERROR": { emitter.emit("notify", { - text: t("profile.accountInfo.messages.alreadyExist"), + text: t("user.profile.accountInfo.messages.alreadyExist"), type: "danger", }); break; } case "EMAIL_SAME_AS_CURRENT_ERROR": { emitter.emit("notify", { - text: t("profile.accountInfo.messages.duplicate"), + text: t("user.profile.accountInfo.messages.duplicate"), type: "danger", }); break; } case "EMAIL_INVALID_ERROR": { emitter.emit("notify", { - text: t("profile.accountInfo.messages.invalid"), + text: t("user.profile.accountInfo.messages.invalid"), type: "danger", }); break; } case "EMAIL_FEATURE_DISABLED_ERROR": { emitter.emit("notify", { - text: t("profile.accountInfo.messages.disabled"), + text: t("user.profile.accountInfo.messages.disabled"), type: "danger", }); break; } default: { emitter.emit("notify", { - text: t("profile.accountInfo.messages.error"), + text: t("user.profile.accountInfo.messages.error"), type: "danger", }); break; @@ -108,7 +108,7 @@ const onSubmit = async (data: UpdateEmailFormData) => { loading.value = false; } catch (error) { emitter.emit("notify", { - text: t("profile.accountInfo.messages.error"), + text: t("user.profile.accountInfo.messages.error"), type: "danger", });