mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(i18n): review translations and fix i18n library misuse (#2750)
This commit is contained in:
1 parent
78f783f0c4
commit
8cb097f954
575 files changed
+192671
-160540
No files matched your search
@@ -10,7 +10,8 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'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.sensitive_content_filter_age_restricted': "This sensitive content filter isn't available for your age.",
|
||||
'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.',
|
||||
'account.session_token_mismatch': 'Session token mismatch.',
|
||||
'account.suspended_permanently': 'This account has been permanently suspended.',
|
||||
@@ -23,7 +24,7 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'admin_and_system.admin_api_key_not_found': "Admin API key wasn't found.",
|
||||
'admin_and_system.deletion_failed': "We couldn't delete the resource. Please try again.",
|
||||
'admin_and_system.general_error': 'Something went wrong. Please try again later.',
|
||||
'admin_and_system.invalid_acls_format': 'Invalid ACLs format.',
|
||||
'admin_and_system.invalid_acls_format': 'Invalid ACL format.',
|
||||
'admin_and_system.invalid_api_origin': 'Invalid API origin.',
|
||||
'admin_and_system.invalid_audit_log_reason': 'Invalid audit log reason.',
|
||||
'admin_and_system.invalid_bot_flag': 'Invalid bot flag.',
|
||||
@@ -37,7 +38,7 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'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.',
|
||||
'admin_and_system.invalid_timezone_identifier': 'Invalid timezone identifier.',
|
||||
'admin_and_system.invalid_timezone_identifier': 'Invalid time zone identifier.',
|
||||
'admin_and_system.missing_acl': 'Missing ACL.',
|
||||
'admin_and_system.must_be_iso_timestamp': 'Must be a valid ISO timestamp.',
|
||||
'admin_and_system.processing_failed': "We couldn't process the request. Please try again.",
|
||||
@@ -121,7 +122,8 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'auth_and_oauth.registration_pending_approval': 'This registration is waiting for admin approval.',
|
||||
'auth_and_oauth.registration_rejected': 'This registration request was rejected.',
|
||||
'auth_and_oauth.registration_url_invalid': 'This registration link is invalid or has expired.',
|
||||
'auth_and_oauth.response_type_must_be_code_for_non_bot_scopes': 'Response type must be code for non-bot scopes.',
|
||||
'auth_and_oauth.response_type_must_be_code_for_non_bot_scopes':
|
||||
'Response type must be "code" for scopes other than "bot".',
|
||||
'auth_and_oauth.sso_identity_mismatch': 'SSO identity mismatch between id_token and userinfo.',
|
||||
'auth_and_oauth.sso_misconfigured': 'SSO is misconfigured. Please contact your administrator.',
|
||||
'auth_and_oauth.sso_provider_did_not_return_email': "Your SSO provider didn't return an email address.",
|
||||
@@ -130,7 +132,8 @@ export const ERROR_I18N_MESSAGES = {
|
||||
"We couldn't allocate a discriminator for your SSO account. Please try again.",
|
||||
'auth_and_oauth.sudo_mode_required': 'Sudo mode is required.',
|
||||
'auth_and_oauth.unknown_application': 'Unknown application.',
|
||||
'auth_and_registration.password_is_too_common': 'Your password is too common. Please choose a more unique password.',
|
||||
'auth_and_registration.password_is_too_common':
|
||||
'Your password is too common. Please choose a less predictable password.',
|
||||
'auth_and_registration.password_not_set': "Password isn't set.",
|
||||
'bots.bot_discriminator_cannot_be_changed': "Bot discriminator can't be changed.",
|
||||
'bots.bot_is_private': 'This bot is private.',
|
||||
@@ -186,7 +189,7 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'channels_and_guilds.guild_banner_requires_feature': 'Community banner requires BANNER feature.',
|
||||
'channels_and_guilds.guild_feature_not_toggleable': 'This feature cannot be toggled.',
|
||||
'channels_and_guilds.guild_id_must_match_referenced_message':
|
||||
'Community ID must match the channel the referenced message was fetched from.',
|
||||
'Community ID must match the community containing the channel the referenced message was fetched from.',
|
||||
'channels_and_guilds.guild_template_invalid': 'The community template data is invalid or malformed.',
|
||||
'channels_and_guilds.invalid_channel_id': 'Invalid channel ID: {channelId}.',
|
||||
'channels_and_guilds.invalid_channel_type': 'Invalid channel type.',
|
||||
@@ -240,12 +243,12 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'content_and_safety.ncmec_already_submitted': 'This content has already been submitted to NCMEC.',
|
||||
'content_and_safety.ncmec_submission_failed': "We couldn't submit the report to NCMEC. Please try again later.",
|
||||
'content_and_safety.nsfw_age_restricted': 'NSFW content is age restricted.',
|
||||
'discovery.already_applied': 'This community has already applied for discovery.',
|
||||
'discovery.application_already_reviewed': 'This discovery application has already been reviewed.',
|
||||
'discovery.already_applied': 'This community has already applied for Discovery.',
|
||||
'discovery.application_already_reviewed': 'This Discovery application has already been reviewed.',
|
||||
'discovery.application_not_found': "Discovery application wasn't found.",
|
||||
'discovery.disabled': "Discovery isn't available on this instance.",
|
||||
'discovery.insufficient_members': "This community doesn't meet the minimum member count for discovery.",
|
||||
'discovery.not_discoverable': "This community isn't listed in discovery.",
|
||||
'discovery.insufficient_members': "This community doesn't meet the minimum member count for Discovery.",
|
||||
'discovery.not_discoverable': "This community isn't listed in Discovery.",
|
||||
'donation.amount_invalid': 'Donation amount is invalid.',
|
||||
'donation.magic_link_expired': 'Magic link has expired.',
|
||||
'donation.magic_link_invalid': 'Magic link is invalid.',
|
||||
@@ -306,7 +309,7 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'harvest.expired': 'Your data export request has expired. Please request a new export.',
|
||||
'harvest.failed': 'Your data export request failed. Please try again.',
|
||||
'harvest.not_ready': 'Your data export is still being prepared. Please check back in a few moments.',
|
||||
'harvest.unknown': 'Unknown harvest.',
|
||||
'harvest.unknown': 'Unknown data export.',
|
||||
'http.bad_gateway': 'Bad gateway.',
|
||||
'http.bad_request': 'Bad request.',
|
||||
'http.conflict': 'Conflict.',
|
||||
@@ -339,22 +342,22 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'Text must not exceed {maxLength, plural, one {# character} other {# characters}}.',
|
||||
'limits.integer_out_of_int64_range': 'Integer value is out of the valid int64 range.',
|
||||
'limits.rows_required': '`rows` is required.',
|
||||
'limits.string_length_exact': 'String must be exactly {length} characters.',
|
||||
'limits.string_length_exact': 'String must be exactly {length, plural, one {# character} other {# characters}}.',
|
||||
'limits.string_length_invalid': 'String length must be between {min} and {max} characters.',
|
||||
'limits.synced_preferences_too_large': 'Synced preferences exceed {max_bytes} bytes.',
|
||||
'limits.timeout_cannot_exceed_365_days':
|
||||
"Timeout can't be longer than {maxDays, plural, one {# day} other {# days}} from now.",
|
||||
'limits.value_must_be_integer_in_range':
|
||||
'The value for `{name}` must be an integer between {minValue} and {maxValue}.',
|
||||
'media_and_memes.favorite_meme_name_required': 'Favorite meme name is required.',
|
||||
'media_and_memes.favorite_meme_not_found': "Favorite meme wasn't found.",
|
||||
'media_and_memes.favorite_meme_name_required': 'Saved media name is required.',
|
||||
'media_and_memes.favorite_meme_not_found': "Saved media wasn't found.",
|
||||
'media_and_memes.max_favorite_meme_tags_exceeded':
|
||||
'You can only add up to {limit, plural, one {# tag} other {# tags}} per favorite meme.',
|
||||
'You can only add up to {limit, plural, one {# tag} other {# tags}} per saved media item.',
|
||||
'media_and_memes.max_favorite_memes_reached':
|
||||
"You've reached the maximum of {count, plural, one {# favorite meme} other {# favorite memes}}.",
|
||||
'media_and_memes.media_already_in_favorites': 'This media is already in your favorite memes.',
|
||||
"You've reached the maximum of {count, plural, one {# saved media item} other {# saved media items}}.",
|
||||
'media_and_memes.media_already_in_favorites': 'This media is already in your saved media.',
|
||||
'media_and_memes.media_metadata_error': 'Media metadata error.',
|
||||
'media_and_memes.unknown_favorite_meme': 'Unknown favorite meme.',
|
||||
'media_and_memes.unknown_favorite_meme': 'Unknown saved media.',
|
||||
'messages.cannot_delete_more_than_100':
|
||||
"You can't delete more than {max, plural, one {# message} other {# messages}} at once.",
|
||||
'messages.cannot_edit_others_message': "You can't edit another user's message.",
|
||||
@@ -373,7 +376,7 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'messages.voice_messages_attachment_must_be_audio': 'Voice message attachments must be audio files.',
|
||||
'messages.voice_messages_cannot_have_content': "Voice messages can't have text content.",
|
||||
'messages.voice_messages_cannot_have_embeds': "Voice messages can't have embeds.",
|
||||
'messages.voice_messages_cannot_have_favorite_memes': "Voice messages can't have favorite memes.",
|
||||
'messages.voice_messages_cannot_have_favorite_memes': "Voice messages can't have saved media.",
|
||||
'messages.voice_messages_cannot_have_stickers': "Voice messages can't have stickers.",
|
||||
'mfa_and_passkeys.invalid_mfa_code': 'Invalid MFA code.',
|
||||
'mfa_and_passkeys.invalid_webauthn_authentication_counter': 'Invalid WebAuthn authentication counter.',
|
||||
@@ -384,7 +387,8 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'You must enable 2FA on your account before requiring it for moderators.',
|
||||
'mfa_and_passkeys.no_passkeys_registered': 'No passkeys are registered.',
|
||||
'mfa_and_passkeys.passkey_authentication_failed': 'Passkey authentication failed.',
|
||||
'mfa_and_passkeys.totp_not_enabled': "Authenticator app two-factor isn't enabled for this account.",
|
||||
'mfa_and_passkeys.totp_not_enabled':
|
||||
"Two-factor authentication using an authenticator app isn't enabled for this account.",
|
||||
'mfa_and_passkeys.two_factor_not_enabled': "Two-factor authentication isn't enabled.",
|
||||
'mfa_and_passkeys.two_factor_required': 'Two-factor authentication is required.',
|
||||
'mfa_and_passkeys.unknown_webauthn_credential': 'Unknown WebAuthn credential.',
|
||||
@@ -494,7 +498,7 @@ export const ERROR_I18N_MESSAGES = {
|
||||
"You've reached the maximum of {count, plural, one {# reaction} other {# reactions}}.",
|
||||
'stickers_and_emojis.max_stickers_reached':
|
||||
"You've reached the maximum of {count, plural, one {# sticker} other {# stickers}}.",
|
||||
'stickers_and_emojis.not_valid_unicode_emoji': 'Not a valid unicode emoji.',
|
||||
'stickers_and_emojis.not_valid_unicode_emoji': 'Not a valid Unicode emoji.',
|
||||
'stickers_and_emojis.unknown_emoji': 'Unknown emoji.',
|
||||
'stickers_and_emojis.unknown_sticker': 'Unknown sticker.',
|
||||
'stripe.error': 'Payment processing encountered an error. Please try again or contact support.',
|
||||
@@ -505,7 +509,7 @@ export const ERROR_I18N_MESSAGES = {
|
||||
"No purchase history found. Customer portal isn't available.",
|
||||
'stripe.no_subscription_found': 'No subscription found.',
|
||||
'stripe.payment_not_available': 'Payment processing is temporarily unavailable. Please try again later.',
|
||||
'stripe.refund_cooldown_active': 'You can self-serve refund once every 30 days. Please try again later.',
|
||||
'stripe.refund_cooldown_active': 'You can request a self-serve refund once every 30 days. Please try again later.',
|
||||
'stripe.refund_outside_window': 'This purchase is outside the 3-day self-serve refund window.',
|
||||
'stripe.subscription_already_canceling': 'Subscription is already set to cancel at period end.',
|
||||
'stripe.subscription_not_canceling': "Subscription isn't set to cancel.",
|
||||
@@ -514,7 +518,7 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'stripe.webhook_signature_missing': 'Stripe webhook signature is missing.',
|
||||
'tickets.ticket_already_completed': 'This ticket has already been completed.',
|
||||
'tos_and_age.date_of_birth_format_invalid': 'Invalid date of birth format.',
|
||||
'tos_and_age.must_agree_to_tos_and_privacy': 'You must agree to the Terms of Service and Privacy Policy.',
|
||||
'tos_and_age.must_agree_to_tos_and_privacy': 'You must agree to the Terms of service and Privacy policy.',
|
||||
'tos_and_age.must_be_minimum_age':
|
||||
'You must be at least {minAge, plural, one {# year} other {# years}} old to create an account.',
|
||||
'unknown_entities.unknown_channel': "Channel wasn't found.",
|
||||
@@ -542,7 +546,7 @@ export const ERROR_I18N_MESSAGES = {
|
||||
'usernames_and_tags.too_many_users_with_username_try_different':
|
||||
'There are too many users with this username. Try a different username.',
|
||||
'usernames_and_tags.unclaimed_accounts_can_only_set_email_via_token':
|
||||
'Unclaimed accounts can only set email via token.',
|
||||
'Unclaimed accounts can only set an email address using a token.',
|
||||
'usernames_and_tags.username_invalid_characters':
|
||||
'Username can only contain Latin letters (a-z, A-Z), numbers (0-9), and underscores (_).',
|
||||
'usernames_and_tags.username_length_invalid': 'Username must be between {min} and {max} characters.',
|
||||
|
||||
Reference in new issue
Block a user