fix(i18n): localize audit logs and new validation messages

This commit is contained in:
shuaiplus
2026-07-05 23:45:26 +08:00
parent d028b194e7
commit 01ff627ac6
6 changed files with 352 additions and 248 deletions
+19
View File
@@ -1014,6 +1014,8 @@ const en: Record<string, string> = {
"txt_totp_qr_scanned": "TOTP value added.",
"txt_totp_qr_not_found": "No QR code found in that image.",
"txt_totp_qr_scan_failed": "Failed to scan QR code.",
"txt_totp_qr_invalid_image_type": "Choose an image file.",
"txt_totp_qr_image_too_large": "Choose an image smaller than 8 MB.",
"txt_totp_qr_unsupported": "This browser does not support QR scanning. Try Chrome or Edge, or paste the TOTP link or secret manually.",
"txt_totp_qr_camera_unavailable": "Camera is unavailable. Check browser permission, or choose an image.",
"txt_totp_qr_choose_image": "Choose image",
@@ -1125,6 +1127,12 @@ const en: Record<string, string> = {
"txt_import_invalid_password_protected_file": "Invalid password-protected export file.",
"txt_import_decrypt_failed": "Failed to decrypt import file.",
"txt_import_empty_zip_archive": "Empty zip archive.",
"txt_import_zip_too_large": "ZIP archive is too large. Maximum size is {size} MiB.",
"txt_import_file_too_large": "Import file is too large. Maximum size is {size} MiB.",
"txt_import_zip_too_many_files": "ZIP archive contains too many files.",
"txt_import_zip_entry_too_large": "ZIP archive contains a file larger than {size} MiB.",
"txt_import_zip_expands_too_large": "ZIP archive expands beyond the current import limit of {size} MiB.",
"txt_import_zip_unsafe_file_name": "ZIP archive contains an unsafe file name.",
"txt_import_no_json_found_in_zip": "No importable JSON data found in zip archive.",
"txt_import_data_json_not_found": "data.json not found in zip archive.",
"txt_import_zip_password_required": "ZIP password is required.",
@@ -1219,11 +1227,18 @@ const en: Record<string, string> = {
"txt_log_action_account_api_key_create": "Create API key",
"txt_log_action_account_api_key_rotate": "Rotate API key",
"txt_log_action_account_keys_update": "Update account keys",
"txt_log_action_account_passkey_create": "Create login passkey",
"txt_log_action_account_passkey_delete": "Delete login passkey",
"txt_log_action_account_passkey_encryption_enable": "Enable passkey vault unlock",
"txt_log_action_account_profile_update": "Update account profile",
"txt_log_action_account_totp_disable": "Disable two-step login",
"txt_log_action_account_totp_enable": "Enable two-step login",
"txt_log_action_account_totp_recover": "Recover two-step login",
"txt_log_action_account_verify_devices_update": "Update device verification",
"txt_log_action_account_webauthn_2fa_delete": "Delete passkey two-step login key",
"txt_log_action_account_webauthn_2fa_enable": "Enable passkey two-step login",
"txt_log_action_account_yubikey_enable": "Update YubiKey OTP settings",
"txt_log_action_admin_audit_clear": "Clear audit logs",
"txt_log_action_admin_audit_settings_update": "Update log retention settings",
"txt_log_action_admin_backup_export": "Export backup",
"txt_log_action_admin_backup_import": "Import backup",
@@ -1246,6 +1261,8 @@ const en: Record<string, string> = {
"txt_log_action_auth_login_failed_bad_password": "Login failed: bad password",
"txt_log_action_auth_login_failed_user_inactive": "Login failed: inactive account",
"txt_log_action_auth_login_success": "Login succeeded",
"txt_log_action_auth_passkey_login_failed": "Passkey login failed",
"txt_log_action_auth_passkey_login_success": "Passkey login succeeded",
"txt_log_action_auth_refresh_failed": "Refresh login failed: {reason}",
"txt_log_action_cipher_delete_permanent": "Permanently delete vault item",
"txt_log_action_cipher_delete_permanent_bulk": "Permanently delete vault items",
@@ -1296,6 +1313,7 @@ const en: Record<string, string> = {
"txt_log_meta_method": "Request method",
"txt_log_meta_path": "Request path",
"txt_log_meta_provider": "Provider",
"txt_log_meta_prf_status": "PRF status",
"txt_log_meta_prune_error": "Cleanup error",
"txt_log_meta_pruned_file_count": "Cleaned files",
"txt_log_meta_raw": "Raw data",
@@ -1331,6 +1349,7 @@ const en: Record<string, string> = {
"txt_log_reason_user_inactive": "User inactive",
"txt_log_reason_user_missing": "User missing",
"txt_log_target_type_attachment": "Attachment",
"txt_log_target_type_account_passkey": "Login passkey",
"txt_log_target_type_audit_log": "Log",
"txt_log_target_type_backup": "Backup",
"txt_log_target_type_cipher": "Vault item",