refactor: simplify account standing and verification levels (#3130)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-02 18:17:41 +02:00
1 parent 1abde06824
commit 1ec8f31253
488 files changed
+10390 -47117

No files matched your search

+1 -24
View File
@@ -7,9 +7,7 @@ export const ERROR_I18N_MESSAGES = {
'account.email_verification_required': 'Email verification is required for this action.',
'account.guild_verification_required': 'Community verification is required.',
'account.ip_authorization_required': 'IP authorization is required.',
'account.locked_suspicious_activity': 'Your account is locked due to suspicious activity.',
'account.phone_gate_escape_unavailable': 'This account cannot postpone the phone verification check.',
'account.phone_required_for_guild': 'You need to add a phone number to send messages in this community.',
'account.limited': 'Your account is limited. Check your email for how to lift it.',
'account.sensitive_content_filter_age_restricted':
"This sensitive content filter isn't available for your age group.",
'account.session_timeout': 'Session timed out. Refresh the page and log in again.',
@@ -34,7 +32,6 @@ export const ERROR_I18N_MESSAGES = {
'admin_and_system.guild_id_required_for_search_index':
'Community ID is required for channel message and member search indexes.',
'admin_and_system.invalid_integer_format': 'Invalid integer format.',
'admin_and_system.invalid_suspicious_flags_format': 'Invalid suspicious flags format.',
'admin_and_system.invalid_system_flag': 'Invalid system flag.',
'admin_and_system.invalid_timeout_value': 'Invalid timeout value.',
'admin_and_system.invalid_timestamp': 'Invalid timestamp.',
@@ -46,7 +43,6 @@ export const ERROR_I18N_MESSAGES = {
'admin_and_system.resource_locked': 'This resource is being modified. Please try again shortly.',
'admin_and_system.test_harness_disabled': 'Test harness is disabled.',
'admin_and_system.test_harness_forbidden': 'Test harness is forbidden.',
'admin_and_system.unknown_suspicious_flag': 'Unknown suspicious flag.',
'admin_and_system.update_failed': "We couldn't update the resource. Please try again.",
'admin_and_system.user_must_be_bot_for_system_user': 'User must be a bot to be marked as a system user.',
'age_verification.already_verified': "You've already completed age verification.",
@@ -459,24 +455,6 @@ export const ERROR_I18N_MESSAGES = {
'permissions.user_not_in_channel': "This user isn't in the channel.",
'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.',
'premium_and_plans.bio_requires_premium_for_length': 'A bio longer than {maxLength} characters requires Premium.',
@@ -502,7 +480,6 @@ export const ERROR_I18N_MESSAGES = {
'rate_limits.ip_authorization_resend_limit_exceeded': 'IP authorization resend limit exceeded.',
'rate_limits.message_crosspost_rate_limited':
'This channel has reached its publishing limit. It can publish 10 messages in a row, then one more every 6 minutes.',
'rate_limits.phone_rate_limit_exceeded': 'Phone rate limit exceeded.',
'rate_limits.pronouns_changed_too_often':
"You've changed your pronouns too often recently. Please try again in {minutes, plural, one {# minute} other {# minutes}}.",
'rate_limits.published_message_edit_rate_limited':