Skip to content

Commit 13740f5

Browse files
committed
fix(translations): Add invalid credential translations
1 parent b42bc95 commit 13740f5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const enUS = {
2525
networkRequestFailed: "Unable to connect to the server. Please check your internet connection",
2626
tooManyRequests: "Too many failed attempts. Please try again later",
2727
emailAlreadyInUse: "An account already exists with this email",
28+
invalidCredential: "The provided credentials are invalid.",
2829
weakPassword: "Password should be at least 8 characters",
2930
unverifiedEmail: "Please verify your email address to continue.",
3031
operationNotAllowed: "This operation is not allowed. Please contact support.",

packages/translations/src/mapping.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const ERROR_CODE_MAP = {
2424
"auth/invalid-email": "invalidEmail",
2525
"auth/unverified-email": "unverifiedEmail",
2626
"auth/user-disabled": "userDisabled",
27+
"auth/invalid-credential": "invalidCredential",
2728
"auth/network-request-failed": "networkRequestFailed",
2829
"auth/too-many-requests": "tooManyRequests",
2930
"auth/email-already-in-use": "emailAlreadyInUse",

packages/translations/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export type Translations = {
3333
networkRequestFailed?: string;
3434
tooManyRequests?: string;
3535
emailAlreadyInUse?: string;
36+
invalidCredential?: string;
3637
weakPassword?: string;
3738
operationNotAllowed?: string;
3839
invalidPhoneNumber?: string;

0 commit comments

Comments
 (0)