Skip to content

Commit

Permalink
feat: update en translations to include username and additional valid…
Browse files Browse the repository at this point in the history
…ation msgs
  • Loading branch information
DaveOrDead committed Jun 26, 2024
1 parent d36b422 commit f64539e
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 13 deletions.
80 changes: 78 additions & 2 deletions auth-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@
"email_input_error_invitation_mismatch": {
"type": "string"
},
"email_input_error_domain_invalid": {
"type": "string"
},
"continue_with_email_button": {
"type": "string"
},
Expand Down Expand Up @@ -347,6 +350,7 @@
"email_input_error_required",
"email_input_error_invalid",
"email_input_error_invitation_mismatch",
"email_input_error_domain_invalid",
"continue_with_email_button",
"auth_block_separator",
"continue_with_social_provider_button",
Expand Down Expand Up @@ -1108,13 +1112,29 @@
},
"operation_not_permitted": {
"type": "string"
},
"invitation_email_mismatch": {
"type": "string"
},
"invitation_expired": {
"type": "string"
},
"user_suspended": {
"type": "string"
},
"unknown_error": {
"type": "string"
}
},
"required": [
"account_not_found",
"action_allowed_only_once",
"no_organization_access",
"operation_not_permitted"
"operation_not_permitted",
"invitation_email_mismatch",
"invitation_expired",
"user_suspended",
"unknown_error"
]
},
"account_not_found_page": {
Expand Down Expand Up @@ -1206,6 +1226,61 @@
"phone_input_error_invalid_format",
"phone_input_error_no_account_found"
]
},
"username_component": {
"type": "object",
"properties": {
"username_input_label": {
"type": "string"
},
"username_input_error_required": {
"type": "string"
},
"username_input_error_invalid": {
"type": "string"
},
"username_input_error_no_account_found": {
"type": "string"
},
"username_input_error_invalid_format": {
"type": "string"
},
"username_input_error_already_exists": {
"type": "string"
},
"username_input_error_invalid_length": {
"type": "string"
},
"email_or_username_input_label": {
"type": "string"
},
"email_or_username_error_required": {
"type": "string"
},
"email_or_username_input_error_invalid": {
"type": "string"
},
"use_username_link": {
"type": "string"
},
"use_email_or_username_link": {
"type": "string"
}
},
"required": [
"username_input_label",
"username_input_error_required",
"username_input_error_invalid",
"username_input_error_no_account_found",
"username_input_error_invalid_format",
"username_input_error_already_exists",
"username_input_error_invalid_length",
"email_or_username_input_label",
"email_or_username_error_required",
"email_or_username_input_error_invalid",
"use_username_link",
"use_email_or_username_link"
]
}
},
"required": [
Expand Down Expand Up @@ -1234,7 +1309,8 @@
"email_address_verification_email",
"general_errors",
"account_not_found_page",
"phone_number_component"
"phone_number_component",
"username_component"
]
}
},
Expand Down
21 changes: 20 additions & 1 deletion en-AU/auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"email_input_error_required": "Email is required",
"email_input_error_invalid": "Enter a valid email",
"email_input_error_invitation_mismatch": "The email must match the one your invitation was sent to",
"email_input_error_domain_invalid": "We can't sign you up with this email domain. Try a different email.",
"continue_with_email_button": "Create your account",
"auth_block_separator": "Or",
"continue_with_social_provider_button": "Continue with ${social_provider_name}",
Expand Down Expand Up @@ -285,7 +286,11 @@
"account_not_found": "Account not found.",
"action_allowed_only_once": "The requested action could only be executed once.",
"no_organization_access": "Sorry, you do not have access to this organization.",
"operation_not_permitted": "The requested action could not be completed."
"operation_not_permitted": "The requested action could not be completed.",
"invitation_email_mismatch": "That email address doesn’t seem quite right. You’ll need to sign in using the email address the invitation was sent to.",
"invitation_expired": "We can’t finish signing you up as the email domain we detected is not allowed. Try a different sign up method.",
"user_suspended": "You cannot sign in at the moment",
"unknown_error": "Something went wrong when we tried to authenticate you, and we can’t offer a quick way out. Start a new session and try signing in again."
},
"account_not_found_page": {
"page_title": "Account not found",
Expand All @@ -309,6 +314,20 @@
"phone_input_error_required": "Phone number can't be left blank",
"phone_input_error_invalid_format": "Enter a valid number without spaces or leading country code",
"phone_input_error_no_account_found": "No account found with this phone number"
},
"username_component": {
"username_input_label": "Username",
"username_input_error_required": "Username can't be left blank",
"username_input_error_invalid": "Enter a valid username",
"username_input_error_no_account_found": "No account found with this username",
"username_input_error_invalid_format": "Sorry. Usernames can only have letters, numbers, -dashes, or _underscores.",
"username_input_error_already_exists": "That username is taken. Add a few characters or try something different.",
"username_input_error_invalid_length": "Choose a unique username between 2 and 64 characters",
"email_or_username_input_label": "Username or email",
"email_or_username_error_required": "Email or username must not be blank",
"email_or_username_input_error_invalid": "Enter a valid email or username",
"use_username_link": "Switch to username",
"use_email_or_username_link": "Switch to username or phone"
}
}
}
21 changes: 20 additions & 1 deletion en-GB/auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"email_input_error_required": "Email is required",
"email_input_error_invalid": "Enter a valid email",
"email_input_error_invitation_mismatch": "The email must match the one your invitation was sent to",
"email_input_error_domain_invalid": "We can't sign you up with this email domain. Try a different email.",
"continue_with_email_button": "Create your account",
"auth_block_separator": "Or",
"continue_with_social_provider_button": "Continue with ${social_provider_name}",
Expand Down Expand Up @@ -285,7 +286,11 @@
"account_not_found": "Account not found.",
"action_allowed_only_once": "The requested action could only be executed once.",
"no_organization_access": "Sorry, you do not have access to this organisation.",
"operation_not_permitted": "The requested action could not be completed."
"operation_not_permitted": "The requested action could not be completed.",
"invitation_email_mismatch": "That email address doesn’t seem quite right. You’ll need to sign in using the email address the invitation was sent to.",
"invitation_expired": "We can’t finish signing you up as the email domain we detected is not allowed. Try a different sign up method.",
"user_suspended": "You cannot sign in at the moment",
"unknown_error": "Something went wrong when we tried to authenticate you, and we can’t offer a quick way out. Start a new session and try signing in again."
},
"account_not_found_page": {
"page_title": "Account not found",
Expand All @@ -309,6 +314,20 @@
"phone_input_error_required": "Phone number can't be left blank",
"phone_input_error_invalid_format": "Enter a valid number without spaces or leading country code",
"phone_input_error_no_account_found": "No account found with this phone number"
},
"username_component": {
"username_input_label": "Username",
"username_input_error_required": "Username can't be left blank",
"username_input_error_invalid": "Enter a valid username",
"username_input_error_no_account_found": "No account found with this username",
"username_input_error_invalid_format": "Sorry. Usernames can only have letters, numbers, -dashes, or _underscores.",
"username_input_error_already_exists": "That username is taken. Add a few characters or try something different.",
"username_input_error_invalid_length": "Choose a unique username between 2 and 64 characters",
"email_or_username_input_label": "Username or email",
"email_or_username_error_required": "Email or username must not be blank",
"email_or_username_input_error_invalid": "Enter a valid email or username",
"use_username_link": "Switch to username",
"use_email_or_username_link": "Switch to username or phone"
}
}
}
21 changes: 20 additions & 1 deletion en-US/auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"email_input_error_required": "Email is required",
"email_input_error_invalid": "Enter a valid email",
"email_input_error_invitation_mismatch": "The email must match the one your invitation was sent to",
"email_input_error_domain_invalid": "We can't sign you up with this email domain. Try a different email.",
"continue_with_email_button": "Create your account",
"auth_block_separator": "Or",
"continue_with_social_provider_button": "Continue with ${social_provider_name}",
Expand Down Expand Up @@ -285,7 +286,11 @@
"account_not_found": "Account not found.",
"action_allowed_only_once": "The requested action could only be executed once.",
"no_organization_access": "Sorry, you do not have access to this organization.",
"operation_not_permitted": "The requested action could not be completed."
"operation_not_permitted": "The requested action could not be completed.",
"invitation_email_mismatch": "That email address doesn’t seem quite right. You’ll need to sign in using the email address the invitation was sent to.",
"invitation_expired": "We can’t finish signing you up as the email domain we detected is not allowed. Try a different sign up method.",
"user_suspended": "You cannot sign in at the moment",
"unknown_error": "Something went wrong when we tried to authenticate you, and we can’t offer a quick way out. Start a new session and try signing in again."
},
"account_not_found_page": {
"page_title": "Account not found",
Expand All @@ -309,6 +314,20 @@
"phone_input_error_required": "Phone number can't be left blank",
"phone_input_error_invalid_format": "Enter a valid number without spaces or leading country code",
"phone_input_error_no_account_found": "No account found with this phone number"
},
"username_component": {
"username_input_label": "Username",
"username_input_error_required": "Username can't be left blank",
"username_input_error_invalid": "Enter a valid username",
"username_input_error_no_account_found": "No account found with this username",
"username_input_error_invalid_format": "Sorry. Usernames can only have letters, numbers, -dashes, or _underscores.",
"username_input_error_already_exists": "That username is taken. Add a few characters or try something different.",
"username_input_error_invalid_length": "Choose a unique username between 2 and 64 characters",
"email_or_username_input_label": "Username or email",
"email_or_username_error_required": "Email or username must not be blank",
"email_or_username_input_error_invalid": "Enter a valid email or username",
"use_username_link": "Switch to username",
"use_email_or_username_link": "Switch to username or phone"
}
}
}
21 changes: 20 additions & 1 deletion en/auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"email_input_error_required": "Email is required",
"email_input_error_invalid": "Enter a valid email",
"email_input_error_invitation_mismatch": "The email must match the one your invitation was sent to",
"email_input_error_domain_invalid": "We can't sign you up with this email domain. Try a different email.",
"continue_with_email_button": "Create your account",
"auth_block_separator": "Or",
"continue_with_social_provider_button": "Continue with ${social_provider_name}",
Expand Down Expand Up @@ -285,7 +286,11 @@
"account_not_found": "Account not found.",
"action_allowed_only_once": "The requested action could only be executed once.",
"no_organization_access": "Sorry, you do not have access to this organization.",
"operation_not_permitted": "The requested action could not be completed."
"operation_not_permitted": "The requested action could not be completed.",
"invitation_email_mismatch": "That email address doesn’t seem quite right. You’ll need to sign in using the email address the invitation was sent to.",
"invitation_expired": "We can’t finish signing you up as the email domain we detected is not allowed. Try a different sign up method.",
"user_suspended": "You cannot sign in at the moment",
"unknown_error": "Something went wrong when we tried to authenticate you, and we can’t offer a quick way out. Start a new session and try signing in again."
},
"account_not_found_page": {
"page_title": "Account not found",
Expand All @@ -309,6 +314,20 @@
"phone_input_error_required": "Phone number can't be left blank",
"phone_input_error_invalid_format": "Enter a valid number without spaces or leading country code",
"phone_input_error_no_account_found": "No account found with this phone number"
},
"username_component": {
"username_input_label": "Username",
"username_input_error_required": "Username can't be left blank",
"username_input_error_invalid": "Enter a valid username",
"username_input_error_no_account_found": "No account found with this username",
"username_input_error_invalid_format": "Sorry. Usernames can only have letters, numbers, -dashes, or _underscores.",
"username_input_error_already_exists": "That username is taken. Add a few characters or try something different.",
"username_input_error_invalid_length": "Choose a unique username between 2 and 64 characters",
"email_or_username_input_label": "Username or email",
"email_or_username_error_required": "Email or username must not be blank",
"email_or_username_input_error_invalid": "Enter a valid email or username",
"use_username_link": "Switch to username",
"use_email_or_username_link": "Switch to username or phone"
}
}
}
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f64539e

Please sign in to comment.