fix(auth): explain why a phone number was rejected (#2480)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-06 03:09:26 +02:00
1 parent 519b3a6127
commit 8734956d86
122 files changed
+2356 -75

No files matched your search

@@ -501,10 +501,22 @@ export const ERROR_I18N_MESSAGES = {
'permissions.user_not_in_voice': "This user isn't in voice.",
'permissions.user_owns_guilds': 'This user owns communities.',
'phone.add_not_eligible': 'You are not eligible to add a phone number to your account.',
'phone.country_not_supported':
"We don't send verification texts to this country. Use a mobile number from another country, or email [email protected] and a person will review your account.",
'phone.inbound_verification_required':
'This number is verified by texting us instead of us texting you. Start phone verification again to get the code and the number to text.',
'phone.invalid_number': 'Invalid phone number.',
'phone.lookup_unavailable':
'Our phone number check is down right now, so we stopped before sending your code. This is on us, not your number. Wait a few minutes and try the same number again.',
'phone.number_already_used': 'Phone number is already in use.',
'phone.number_format_required': 'Phone number must be in E.164 format (for example, +1234567890).',
'phone.number_not_in_service':
"Your carrier says this number isn't in service. Check the number and try again, or email [email protected] if it's correct.",
'phone.number_not_mobile':
"This isn't a mobile number, so it can't receive our text. Use a mobile number, or email [email protected] if you think that's wrong.",
'phone.verification_code_invalid': 'Invalid phone verification code.',
'phone.verification_needs_review':
"We couldn't verify this number automatically. Email [email protected] and a person will review your account.",
'phone.verification_required': 'Phone verification is required.',
'premium_and_plans.animated_avatars_require_premium': 'Animated avatars require Premium.',
'premium_and_plans.banners_require_premium': 'Banners require Premium.',