Skip to content

Commit 8c22319

Browse files
committed
fix(translations): Update translation text to be less specific
1 parent d0efb36 commit 8c22319

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

packages/translations/src/locales/en-us.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export const enUS = {
2626
tooManyRequests: "Too many failed attempts. Please try again later",
2727
emailAlreadyInUse: "An account already exists with this email",
2828
weakPassword: "Password should be at least 8 characters",
29-
operationNotAllowed: "Email/password accounts are not enabled. Please contact support.",
29+
unverifiedEmail: "Please verify your email address to continue.",
30+
operationNotAllowed: "This operation is not allowed. Please contact support.",
3031
invalidPhoneNumber: "The phone number is invalid",
3132
missingPhoneNumber: "Please provide a phone number",
3233
quotaExceeded: "SMS quota exceeded. Please try again later",
@@ -100,5 +101,6 @@ export const enUS = {
100101
mfaAssertionPrompt: "Please complete the multi-factor authentication process",
101102
mfaAssertionFactorPrompt: "Please choose a multi-factor authentication method",
102103
mfaTotpQrCodePrompt: "Scan this QR code with your authenticator app",
104+
mfaSmsEnrollmentVerificationPrompt: "Enter the verification code sent to your phone number",
103105
},
104106
} satisfies Translations;

packages/translations/src/mapping.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const ERROR_CODE_MAP = {
2222
"auth/user-not-found": "userNotFound",
2323
"auth/wrong-password": "wrongPassword",
2424
"auth/invalid-email": "invalidEmail",
25+
"auth/unverified-email": "unverifiedEmail",
2526
"auth/user-disabled": "userDisabled",
2627
"auth/network-request-failed": "networkRequestFailed",
2728
"auth/too-many-requests": "tooManyRequests",

packages/translations/src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export type Translations = {
2929
wrongPassword?: string;
3030
invalidEmail?: string;
3131
userDisabled?: string;
32+
unverifiedEmail?: string;
3233
networkRequestFailed?: string;
3334
tooManyRequests?: string;
3435
emailAlreadyInUse?: string;
@@ -106,5 +107,6 @@ export type Translations = {
106107
mfaAssertionPrompt?: string;
107108
mfaAssertionFactorPrompt?: string;
108109
mfaTotpQrCodePrompt?: string;
110+
mfaSmsEnrollmentVerificationPrompt?: string;
109111
};
110112
};

0 commit comments

Comments
 (0)