Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix(common): refine profile field validations (#4995)
Nayan45d99a48a299
diff --git a/packages/hoppscotch-common/locales/af.json b/packages/hoppscotch-common/locales/af.jsonindex fc27dea15..27b7422a2 100644--- a/packages/hoppscotch-common/locales/af.json+++ b/packages/hoppscotch-common/locales/af.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Leë versoeknaam","f12_details": "(F12 vir meer inligting)",@@ -348,6 +349,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Kon nie voorafversoekskrip uitvoer nie","something_went_wrong": "Iets het verkeerd geloop",diff --git a/packages/hoppscotch-common/locales/ar.json b/packages/hoppscotch-common/locales/ar.jsonindex 8fa69a5c0..13c37a781 100644--- a/packages/hoppscotch-common/locales/ar.json+++ b/packages/hoppscotch-common/locales/ar.json@@ -328,6 +328,7 @@"danger_zone": "منطقة الخطر","delete_account": "حسابك حاليًا هو مالك في مساحات العمل التالية:","delete_account_description": "يجب عليك إما إزالة نفسك أو نقل الملكية أو حذف هذه مساحات العمل قبل أن تتمكن من حذف حسابك.",+ "empty_email_address": "لا يُمكن ترك حقل عنوان البريد الإلكتروني فارغًا.","empty_profile_name": "لا يمكن أن يكون اسم الملف الشخصي فارغًا","empty_req_name": "اسم الطلب فارغ","f12_details": "(F12 للتفاصيل)",@@ -348,6 +349,7 @@"page_not_found": "لا يمكن العثور على هذه الصفحة","please_install_extension": "يرجى تثبيت الإضافة وإضافة المصدر إلى الإضافة.","proxy_error": "خطأ في الوكيل",+ "same_email_address": "عنوان البريد الإلكتروني المُحدّث هو نفسه عنوان البريد الإلكتروني الحالي.","same_profile_name": "اسم الملف الشخصي المحدث هو نفسه اسم الملف الشخصي الحالي","script_fail": "لم يتمكن من تنفيذ نص الطلب المسبق","something_went_wrong": "حدث خطأ ما",diff --git a/packages/hoppscotch-common/locales/ca.json b/packages/hoppscotch-common/locales/ca.jsonindex 0e0363351..9e9d86cb8 100644--- a/packages/hoppscotch-common/locales/ca.json+++ b/packages/hoppscotch-common/locales/ca.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "L'adreça electrònica no pot estar buida","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Nom de la sol·licitud buida","f12_details": "(F12 per obtenir més informació)",@@ -348,6 +349,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "L'adreça de correu electrònic actualitzada és la mateixa que l'adreça de correu electrònic actual","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "No s'ha pogut executar l'script de sol·licitud prèvia","something_went_wrong": "Alguna cosa ha anat malament",diff --git a/packages/hoppscotch-common/locales/cn.json b/packages/hoppscotch-common/locales/cn.jsonindex dc27544ba..94540122f 100644--- a/packages/hoppscotch-common/locales/cn.json+++ b/packages/hoppscotch-common/locales/cn.json@@ -328,6 +328,7 @@"danger_zone": "危险区域","delete_account": "您的帐号目前为这些团队的拥有者:","delete_account_description": "您在删除帐号前必须先将您自己从团队中移除、转移拥有权,或是删除团队。",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "空请求名称","f12_details": "(F12 详情)",@@ -348,6 +349,7 @@"page_not_found": "找不到此頁面","please_install_extension": "请安装扩展并将源添加至扩展。","proxy_error": "代理错误",+ "same_email_address": "更新后的邮箱地址与当前邮箱地址相同","same_profile_name": "更新后的配置文件名称与当前配置文件名称相同","script_fail": "无法执行预请求脚本","something_went_wrong": "发生了一些错误",diff --git a/packages/hoppscotch-common/locales/cs.json b/packages/hoppscotch-common/locales/cs.jsonindex 816f4a603..c70f8e8e6 100644--- a/packages/hoppscotch-common/locales/cs.json+++ b/packages/hoppscotch-common/locales/cs.json@@ -329,6 +329,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Název prázdného požadavku","f12_details": "(F12 pro podrobnosti)",@@ -349,6 +350,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Skript předběžného požadavku nelze spustit","something_went_wrong": "Něco se pokazilo",diff --git a/packages/hoppscotch-common/locales/da.json b/packages/hoppscotch-common/locales/da.jsonindex 1c91e7280..5dace5f6a 100644--- a/packages/hoppscotch-common/locales/da.json+++ b/packages/hoppscotch-common/locales/da.json@@ -326,6 +326,7 @@"danger_zone": "Farligt område","delete_account": "Din konto er i øjeblikket ejer af disse arbejdsområder:","delete_account_description": "Du skal enten fjerne dig selv, overføre ejerskab eller slette disse arbejdsområder, før du kan slette din konto.",+ "empty_email_address": "E-mailadresse må ikke være tom","empty_profile_name": "Profilnavn kan ikke være tomt","empty_req_name": "Tomt anmodningsnavn","f12_details": "(F12 for detaljer)",@@ -346,6 +347,7 @@"page_not_found": "Denne side kunne ikke findes","please_install_extension": "Installer venligst udvidelsen og tilføj oprindelse til udvidelsen.","proxy_error": "Proxy-fejl",+ "same_email_address": "Opdateret e-mailadresse er den samme som den aktuelle e-mailadresse","same_profile_name": "Opdateret profilnavn er det samme som det nuværende profilnavn","script_fail": "Kunne ikke udføre pre-request script","something_went_wrong": "Noget gik galt",diff --git a/packages/hoppscotch-common/locales/de.json b/packages/hoppscotch-common/locales/de.jsonindex f26182456..469eee3a4 100644--- a/packages/hoppscotch-common/locales/de.json+++ b/packages/hoppscotch-common/locales/de.json@@ -374,6 +374,7 @@"danger_zone": "Gefahrenbereich","delete_account": "Dein Konto ist derzeit Besitzer dieser Teams:","delete_account_description": "Du musst dich entweder selbst entfernen, den Besitz übertragen oder diese Teams löschen, bevor du dein Konto löschen kannst.",+ "empty_email_address": "E-Mail-Adresse darf nicht leer sein.","empty_profile_name": "Profilname darf nicht leer sein","empty_req_name": "Leerer Anfragename","f12_details": "(F12 für Details)",@@ -394,6 +395,7 @@"page_not_found": "Diese Seite konnte nicht gefunden werden","please_install_extension": "Bitte installiere die Browser-Erweiterung, um Quellen hinzuzufügen.","proxy_error": "Proxy fehler",+ "same_email_address": "Die aktualisierte E-Mail-Adresse muss mit der aktuellen E-Mail-Adresse übereinstimmen.","same_profile_name": "Der aktualisierte Profilname ist identisch mit dem aktuellen Profilnamen","script_fail": "Pre-Request-Skripte konnte nicht ausgeführt werden","something_went_wrong": "Etwas ist schief gelaufen",diff --git a/packages/hoppscotch-common/locales/el.json b/packages/hoppscotch-common/locales/el.jsonindex f2fffece3..d82ab7eaf 100644--- a/packages/hoppscotch-common/locales/el.json+++ b/packages/hoppscotch-common/locales/el.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Όνομα κενού αιτήματος","f12_details": "(F12 για λεπτομέρειες)",@@ -348,6 +349,7 @@"page_not_found": "Αυτή η σελίδα δεν βρέθηκε","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Δεν ήταν δυνατή η εκτέλεση του σεναρίου πριν από το αίτημα","something_went_wrong": "Κάτι πήγε στραβά",diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.jsonindex 578f68e76..5aed1a5aa 100644--- a/packages/hoppscotch-common/locales/en.json+++ b/packages/hoppscotch-common/locales/en.json@@ -471,6 +471,7 @@"delete_account_description": "You must either remove yourself, transfer ownership, or delete these workspaces before you can delete your account.","delete_activity_log": "Failed to delete activity log","delete_all_activity_logs": "Failed to delete all activity logs",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Empty Request Name","fetch_activity_logs": "Failed to fetch activity logs",@@ -493,6 +494,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Could not execute pre-request script","something_went_wrong": "Something went wrong",diff --git a/packages/hoppscotch-common/locales/es.json b/packages/hoppscotch-common/locales/es.jsonindex b5351785b..50f17c504 100644--- a/packages/hoppscotch-common/locales/es.json+++ b/packages/hoppscotch-common/locales/es.json@@ -328,6 +328,7 @@"danger_zone": "Zona de peligro","delete_account": "Tu cuenta es actualmente propietaria en estos equipos:","delete_account_description": "Para poder eliminar tu cuenta, debes darte de baja, transferir la propiedad o eliminar estos equipos.",+ "empty_email_address": "La dirección de correo electrónico no puede estar vacía.","empty_profile_name": "El nombre del perfil no puede estar vacío","empty_req_name": "Nombre de solicitud vacío","f12_details": "(F12 para más detalles)",@@ -348,6 +349,7 @@"page_not_found": "No se ha podido encontrar esta página","please_install_extension": "Por favor, instala la extensión y añade el origen a la extensión.","proxy_error": "Error de proxy",+ "same_email_address": "La dirección de correo electrónico actualizada es la misma que la actual.","same_profile_name": "El nombre del perfil actualizado es el mismo que el nombre del perfil actual","script_fail": "No se pudo ejecutar el script de solicitud previa","something_went_wrong": "Algo salió mal",diff --git a/packages/hoppscotch-common/locales/fi.json b/packages/hoppscotch-common/locales/fi.jsonindex 03c00e3af..a6664c02d 100644--- a/packages/hoppscotch-common/locales/fi.json+++ b/packages/hoppscotch-common/locales/fi.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Tyhjä pyynnön nimi","f12_details": "(F12 lisätietoja)",@@ -348,6 +349,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Ennakkopyyntöskriptiä ei voitu suorittaa","something_went_wrong": "Jotain meni pieleen",diff --git a/packages/hoppscotch-common/locales/fr.json b/packages/hoppscotch-common/locales/fr.jsonindex 40a1ad2f8..8cc7282b2 100644--- a/packages/hoppscotch-common/locales/fr.json+++ b/packages/hoppscotch-common/locales/fr.json@@ -328,6 +328,7 @@"danger_zone": "Zone de danger","delete_account": "Votre compte est actuellement propriétaire de ces équipes :","delete_account_description": "Vous devez vous retirer, transférer la propriété ou supprimer ces équipes avant de pouvoir supprimer votre compte.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Nom de la requête vide","f12_details": "(F12 pour les détails)",@@ -348,6 +349,7 @@"page_not_found": "Cette page n'a pas pu être trouvée","please_install_extension": "Veuillez installer l'extension et ajouter l'origine à l'extension.","proxy_error": "Erreur de proxy",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Impossible d'exécuter le script de pré-requête","something_went_wrong": "Quelque chose s'est mal passé",diff --git a/packages/hoppscotch-common/locales/he.json b/packages/hoppscotch-common/locales/he.jsonindex be8f931fa..4b86167d0 100644--- a/packages/hoppscotch-common/locales/he.json+++ b/packages/hoppscotch-common/locales/he.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "שם הבקשה ריק","f12_details": "(F12 לפרטים)",@@ -348,6 +349,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "לא ניתן להפעיל סקריפט של בקשה מראש","something_went_wrong": "משהו השתבש",diff --git a/packages/hoppscotch-common/locales/hu.json b/packages/hoppscotch-common/locales/hu.jsonindex cf1991896..43f6effa0 100644--- a/packages/hoppscotch-common/locales/hu.json+++ b/packages/hoppscotch-common/locales/hu.json@@ -328,6 +328,7 @@"danger_zone": "Veszélyes zóna","delete_account": "Az Ön fiókja jelenleg tulajdonos ezekben a csapatokban:","delete_account_description": "El kell távolítani magát, át kell adnia a tulajdonjogot vagy törölnie kell ezeket a csapatokat, mielőtt törölhetné a fiókját.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Üres kérésnév","f12_details": "(F12 a részletekért)",@@ -348,6 +349,7 @@"page_not_found": "Ez az oldal nem található","please_install_extension": "Kérjük telepítse a bővítményt és adja hozzá a forráshoz.","proxy_error": "Proxy hiba",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Nem sikerült végrehajtani a kérés előtti parancsfájlt","something_went_wrong": "Valami elromlott",diff --git a/packages/hoppscotch-common/locales/id.json b/packages/hoppscotch-common/locales/id.jsonindex 3579b6746..0ee8697bc 100644--- a/packages/hoppscotch-common/locales/id.json+++ b/packages/hoppscotch-common/locales/id.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Akun Anda saat ini merupakan pemilik dalam tim-tim ini:","delete_account_description": "Anda harus menghapus diri Anda dari tim-tim ini, mentransfer kepemilikan, atau menghapus tim-tim ini sebelum Anda dapat menghapus akun Anda.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Nama Permintaan Kosong","f12_details": "(F12 untuk detailnya)",@@ -348,6 +349,7 @@"page_not_found": "Halaman ini tidak dapat ditemukan","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Tidak dapat menjalankan pre-request script","something_went_wrong": "Ada yang salah",diff --git a/packages/hoppscotch-common/locales/it.json b/packages/hoppscotch-common/locales/it.jsonindex 26b884783..4605118ab 100644--- a/packages/hoppscotch-common/locales/it.json+++ b/packages/hoppscotch-common/locales/it.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Nome richiesta vuoto","f12_details": "(F12 per i dettagli)",@@ -348,6 +349,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Impossibile eseguire lo script di pre-richiesta","something_went_wrong": "Qualcosa è andato storto",diff --git a/packages/hoppscotch-common/locales/ja.json b/packages/hoppscotch-common/locales/ja.jsonindex 627b688fd..017700231 100644--- a/packages/hoppscotch-common/locales/ja.json+++ b/packages/hoppscotch-common/locales/ja.json@@ -328,6 +328,7 @@"danger_zone": "危険","delete_account": "あなたのアカウントは以下のチームのオーナーとなっています:","delete_account_description": "アカウントを削除する前にチームを離脱するか、オーナーを委任するか、チームを削除してください。",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "リクエスト名がありません","f12_details": "(詳細はF12キーを押してください)",@@ -348,6 +349,7 @@"page_not_found": "このページは見つかりませんでした","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "リクエスト前のスクリプトを実行できませんでした","something_went_wrong": "不明なエラーです",diff --git a/packages/hoppscotch-common/locales/ko.json b/packages/hoppscotch-common/locales/ko.jsonindex d31642a3a..ade3c246b 100644--- a/packages/hoppscotch-common/locales/ko.json+++ b/packages/hoppscotch-common/locales/ko.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "빈 요청 이름","f12_details": "(자세한 내용은 F12)",@@ -348,6 +349,7 @@"page_not_found": "해당 페이지를 찾을 수 없습니다.","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "사전 요청 스크립트를 실행할 수 없습니다.","something_went_wrong": "문제가 발생했습니다.",diff --git a/packages/hoppscotch-common/locales/nl.json b/packages/hoppscotch-common/locales/nl.jsonindex 00a3ea4bd..e202b0f80 100644--- a/packages/hoppscotch-common/locales/nl.json+++ b/packages/hoppscotch-common/locales/nl.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Lege aanvraagnaam","f12_details": "(F12 voor details)",@@ -348,6 +349,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Kon pre-aanvraagscript niet uitvoeren","something_went_wrong": "Er is iets fout gegaan",diff --git a/packages/hoppscotch-common/locales/no.json b/packages/hoppscotch-common/locales/no.jsonindex 1f61a630d..00424dd66 100644--- a/packages/hoppscotch-common/locales/no.json+++ b/packages/hoppscotch-common/locales/no.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Tom forespørselsnavn","f12_details": "(F12 for detaljer)",@@ -348,6 +349,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Kunne ikke kjøre forhåndsforespørselsskript","something_went_wrong": "Noe gikk galt",diff --git a/packages/hoppscotch-common/locales/pl.json b/packages/hoppscotch-common/locales/pl.jsonindex 410240489..dc0b53ef4 100644--- a/packages/hoppscotch-common/locales/pl.json+++ b/packages/hoppscotch-common/locales/pl.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Pusta nazwa żądania","f12_details": "(F12 po szczegóły)",@@ -348,6 +349,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Nie można wykonać skryptu żądania wstępnego","something_went_wrong": "Coś poszło nie tak",diff --git a/packages/hoppscotch-common/locales/pt-br.json b/packages/hoppscotch-common/locales/pt-br.jsonindex 944daed2d..61bfdcde4 100644--- a/packages/hoppscotch-common/locales/pt-br.json+++ b/packages/hoppscotch-common/locales/pt-br.json@@ -395,6 +395,7 @@"danger_zone": "Zona de perigo","delete_account": "Atualmente sua conta é proprietária nesses workspaces:","delete_account_description": "Você precisa sair, transferir para outro proprietário ou remover esses workspaces antes de excluir sua conta.",+ "empty_email_address": "Endereço de e-mail não pode estar vazio","empty_profile_name": "O nome do perfil não pode estar vazio","empty_req_name": "Nome de requisição vazio","f12_details": "(F12 para detalhes)",@@ -416,6 +417,7 @@"page_not_found": "Esta página não foi encontrada","please_install_extension": "Instale a extensão e adicione a origem a ela.","proxy_error": "Erro de Proxy",+ "same_email_address": "O endereço de e-mail atualizado é o mesmo que o endereço de e-mail atual","same_profile_name": "O nome do perfil atualizado é igual ao atual","script_fail": "Não foi possível executar o script pré-requisição","something_went_wrong": "Algo deu errado",diff --git a/packages/hoppscotch-common/locales/pt.json b/packages/hoppscotch-common/locales/pt.jsonindex 9f6472cb9..7de127582 100644--- a/packages/hoppscotch-common/locales/pt.json+++ b/packages/hoppscotch-common/locales/pt.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Nome do pedido vazio","f12_details": "(F12 para detalhes)",@@ -348,6 +349,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Não foi possível executar o script de pré-solicitação","something_went_wrong": "Algo deu errado",diff --git a/packages/hoppscotch-common/locales/ro.json b/packages/hoppscotch-common/locales/ro.jsonindex a4047d83e..c6b5c395f 100644--- a/packages/hoppscotch-common/locales/ro.json+++ b/packages/hoppscotch-common/locales/ro.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Nume cerere goală","f12_details": "(F12 pentru detalii)",@@ -348,6 +349,7 @@"page_not_found": "Pagina nu a putut fi găsită","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Nu s-a putut executa scriptul","something_went_wrong": "Ceva nu a mers bine",diff --git a/packages/hoppscotch-common/locales/ru.json b/packages/hoppscotch-common/locales/ru.jsonindex b074b5899..c269d78ee 100644--- a/packages/hoppscotch-common/locales/ru.json+++ b/packages/hoppscotch-common/locales/ru.json@@ -325,6 +325,7 @@"danger_zone": "Опасная зона","delete_account": "Вы являетесь владельцем этой команды:","delete_account_description": "Прежде чем удалить аккаунт вам необходимо либо назначить владельцом другого пользователя, либо удалить команды в которых вы являетесь владельцем.",+ "empty_email_address": "Адрес электронной почты не может быть пустым","empty_profile_name": "Имя пользователя не может быть пустым","empty_req_name": "Пустое имя запроса","f12_details": "(F12 для подробностей)",@@ -345,6 +346,7 @@"page_not_found": "Эта страница не найдена","please_install_extension": "Ничего страшного. Просто нужно установить специальное расширение в браузере.","proxy_error": "Ошибка в прокси",+ "same_email_address": "Обновленный адрес электронной почты совпадает с текущим адресом электронной почты","same_profile_name": "Задано имя пользователя такое же как и было","script_fail": "Не удалось выполнить сценарий предварительного запроса","something_went_wrong": "Что-то пошло не так",diff --git a/packages/hoppscotch-common/locales/sr.json b/packages/hoppscotch-common/locales/sr.jsonindex 26deb0df4..9cf95648b 100644--- a/packages/hoppscotch-common/locales/sr.json+++ b/packages/hoppscotch-common/locales/sr.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Празан назив захтева","f12_details": "(Ф12 за детаље)",@@ -348,6 +349,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Није могуће извршити скрипту пре захтева","something_went_wrong": "Нешто није у реду",diff --git a/packages/hoppscotch-common/locales/sv.json b/packages/hoppscotch-common/locales/sv.jsonindex 779a71769..f8bfceaf4 100644--- a/packages/hoppscotch-common/locales/sv.json+++ b/packages/hoppscotch-common/locales/sv.json@@ -328,6 +328,7 @@"danger_zone": "Danger zone","delete_account": "Your account is currently an owner in these teams:","delete_account_description": "You must either remove yourself, transfer ownership, or delete these teams before you can delete your account.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Tom förfrågningsnamn","f12_details": "(F12 för detaljer)",@@ -348,6 +349,7 @@"page_not_found": "This page could not be found","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Det gick inte att köra skriptet för förhandsbegäran","something_went_wrong": "Något gick fel",diff --git a/packages/hoppscotch-common/locales/tr.json b/packages/hoppscotch-common/locales/tr.jsonindex 7ac1db920..a0715bcca 100644--- a/packages/hoppscotch-common/locales/tr.json+++ b/packages/hoppscotch-common/locales/tr.json@@ -325,6 +325,7 @@"danger_zone": "Tehlike Alanı","delete_account": "Hesabınız şu anda bu ekiplerin sahibi:","delete_account_description": "Hesabınızı silmeden önce kendinizi kaldırmalı, sahipliği devretmeli veya bu ekipleri silmelisiniz.",+ "empty_email_address": "E-posta Adresi boş olamaz","empty_profile_name": "Profil adı boş olamaz","empty_req_name": "Boş İstek Adı","f12_details": "(Ayrıntılar için F12)",@@ -345,6 +346,7 @@"page_not_found": "Bu sayfa bulunamadı","please_install_extension": "Eklentiyi yükleyin ve kaynağı eklentiye ekleyin.","proxy_error": "Proxy hatası",+ "same_email_address": "Güncellenen e-posta adresi, geçerli e-posta adresiyle aynıdır","same_profile_name": "Güncellenen profil adı mevcut profil adıyla aynı","script_fail": "Ön istek komut dosyası çalıştırılamadı","something_went_wrong": "Bir şeyler yanlış gitti",diff --git a/packages/hoppscotch-common/locales/tw.json b/packages/hoppscotch-common/locales/tw.jsonindex 99f5327c5..a0d264907 100644--- a/packages/hoppscotch-common/locales/tw.json+++ b/packages/hoppscotch-common/locales/tw.json@@ -328,6 +328,7 @@"danger_zone": "危險地帶","delete_account": "您的帳號目前為這些團隊的擁有者:","delete_account_description": "您在刪除帳號前必須先將您自己從團隊中移除、轉移擁有權,或是刪除團隊。",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "空請求名稱","f12_details": "(按下 F12 以獲悉詳情)",@@ -348,6 +349,7 @@"page_not_found": "找不到此頁面","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy 錯誤",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "無法執行預請求指令碼","something_went_wrong": "發生了一些錯誤",diff --git a/packages/hoppscotch-common/locales/uk.json b/packages/hoppscotch-common/locales/uk.jsonindex d00054415..8de78e527 100644--- a/packages/hoppscotch-common/locales/uk.json+++ b/packages/hoppscotch-common/locales/uk.json@@ -328,6 +328,7 @@"danger_zone": "Небезпечна зона","delete_account": "Ваш обліковий запис на разі володіє цими командами:","delete_account_description": "Ви повинні або видалити себе, або передати право власності, або видалити ці команди, перш ніж ви зможете видалити свій обліковий запис.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Пуста назва запиту","f12_details": "(F12 для деталей)",@@ -348,6 +349,7 @@"page_not_found": "Ця сторінка не знайдена","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Не вдалося виконати сценарій попереднього запиту","something_went_wrong": "Щось пішло не так",diff --git a/packages/hoppscotch-common/locales/vi.json b/packages/hoppscotch-common/locales/vi.jsonindex 84597272f..d3806b2ad 100644--- a/packages/hoppscotch-common/locales/vi.json+++ b/packages/hoppscotch-common/locales/vi.json@@ -328,6 +328,7 @@"danger_zone": "Vùng nguy hiểm","delete_account": "Tài khoản của bạn hiện là chủ sở hữu trong các nhóm sau:","delete_account_description": "Bạn phải xóa bản thân, chuyển quyền sở hữu hoặc xóa các nhóm này trước khi bạn có thể xóa tài khoản của mình.",+ "empty_email_address": "Email Address cannot be empty","empty_profile_name": "Profile name cannot be empty","empty_req_name": "Tên request trống","f12_details": "(Nhấn F12 để xem chi tiết)",@@ -348,6 +349,7 @@"page_not_found": "Không tìm thấy trang này","please_install_extension": "Please install the extension and add origin to the extension.","proxy_error": "Proxy error",+ "same_email_address": "Updated email address is same as the current email address","same_profile_name": "Updated profile name is same as the current profile name","script_fail": "Không thể thực thi kịch bản trước request","something_went_wrong": "Đã xảy ra lỗi",diff --git a/packages/hoppscotch-common/src/pages/profile.vue b/packages/hoppscotch-common/src/pages/profile.vueindex 1ea50cb83..f9f147592 100644--- a/packages/hoppscotch-common/src/pages/profile.vue+++ b/packages/hoppscotch-common/src/pages/profile.vue@@ -116,7 +116,7 @@v-model="emailAddress":autofocus="false"styles="flex mt-2 md:max-w-sm"- :placeholder="`${t('settings.profile_name')}`"+ :placeholder="`${t('settings.profile_email')}`"><template #button><HoppButtonSecondary@@ -249,19 +249,20 @@ const updatingDisplayName = ref(false)watchEffect(() => (displayName.value = currentUser.value?.displayName || ""))const updateDisplayName = async () => {- if (!displayName.value) {+ const inputName = displayName.value.trim()+ if (!inputName) {toast.error(`${t("error.empty_profile_name")}`)return}- if (currentUser.value?.displayName === displayName.value) {+ if (currentUser.value?.displayName === inputName) {toast.error(`${t("error.same_profile_name")}`)return}updatingDisplayName.value = true- const res = await platform.auth.setDisplayName(displayName.value)+ const res = await platform.auth.setDisplayName(inputName)if (E.isLeft(res)) {toast.error(t("error.something_went_wrong"))@@ -277,9 +278,20 @@ const updatingEmailAddress = ref(false)watchEffect(() => (emailAddress.value = currentUser.value?.email || ""))const updateEmailAddress = () => {+ const inputEmailAddress = emailAddress.value.trim()+ if (!inputEmailAddress) {+ toast.error(`${t("error.empty_email_address")}`)+ return+ }++ if (currentUser.value?.email === inputEmailAddress) {+ toast.error(`${t("error.same_email_address")}`)+ return+ }+updatingEmailAddress.value = trueplatform.auth- .setEmailAddress(emailAddress.value as string)+ .setEmailAddress(inputEmailAddress as string).then(() => {toast.success(`${t("profile.updated")}`)})