feat(i18n): localize portal account settings

This commit is contained in:
poyrazavsever
2026-07-21 13:37:23 +03:00
parent 48f9d7bc87
commit 86a9c79511
11 changed files with 397 additions and 40 deletions
+5 -1
View File
@@ -8,8 +8,12 @@ import {
function inviteErrorCode(error: unknown): string {
if (!(error instanceof PortalInvitationError)) return "auth.messages.portalInviteFailed";
if (error.code === "INVALID_INPUT") return "auth.invite.invalidInput";
if (error.code === "INVITATION_EXPIRED") return "auth.invite.expired";
if (error.code === "INVITATION_NOT_PENDING") return "auth.invite.accepted";
if (error.code === "INVITATION_NOT_FOUND") return "auth.invite.notFound";
if (error.code === "INVITATION_NOT_PENDING") return "auth.invite.unavailable";
if (error.code === "EMAIL_ALREADY_REGISTERED") return "auth.invite.emailRegistered";
if (error.code === "CLIENT_ALREADY_LINKED") return "auth.invite.clientLinked";
return "auth.messages.portalInviteFailed";
}