Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update en.json translations (#1404)
Leendert de Borste69471e3e35b
diff --git a/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/AttachmentUploader.tsx b/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/AttachmentUploader.tsxindex 16d9cd20c..79aed3e77 100644--- a/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/AttachmentUploader.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/AttachmentUploader.tsx@@ -56,7 +56,7 @@ const AttachmentUploader: React.FC<AttachmentUploaderProps> = ({setTimeout(() => setStatusMessage(''), 3000);} catch (error) {console.error('Error uploading files:', error);- setStatusMessage(t('attachmentUploader.uploadError'));+ setStatusMessage(t('common.errors.unknownErrorTryAgain'));setTimeout(() => setStatusMessage(''), 3000);}@@ -82,7 +82,7 @@ const AttachmentUploader: React.FC<AttachmentUploaderProps> = ({setTimeout(() => setStatusMessage(''), 3000);} catch (error) {console.error('Error deleting attachment:', error);- setStatusMessage(t('attachmentUploader.deleteError'));+ setStatusMessage(t('common.errors.unknownErrorTryAgain'));setTimeout(() => setStatusMessage(''), 3000);}};diff --git a/apps/browser-extension/src/entrypoints/popup/components/EmailPreview.tsx b/apps/browser-extension/src/entrypoints/popup/components/EmailPreview.tsxindex f7edebf1e..9eaadf637 100644--- a/apps/browser-extension/src/entrypoints/popup/components/EmailPreview.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/EmailPreview.tsx@@ -97,7 +97,7 @@ export const EmailPreview: React.FC<EmailPreviewProps> = ({ email }) => {});if (!response.ok) {- setError(t('emails.errors.emailLoadError'));+ setError(t('common.errors.unknownError'));return;}@@ -164,13 +164,13 @@ export const EmailPreview: React.FC<EmailPreviewProps> = ({ email }) => {return;}} catch {- setError(t('emails.errors.emailLoadError'));+ setError(t('common.errors.unknownError'));return;}}} catch (err) {console.error('Error loading emails:', err);- setError(t('emails.errors.emailUnexpectedError'));+ setError(t('common.errors.unknownError'));}setLoading(false);};diff --git a/apps/browser-extension/src/entrypoints/popup/components/Folders/DeleteFolderModal.tsx b/apps/browser-extension/src/entrypoints/popup/components/Folders/DeleteFolderModal.tsxindex bed516137..c098d5d93 100644--- a/apps/browser-extension/src/entrypoints/popup/components/Folders/DeleteFolderModal.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/Folders/DeleteFolderModal.tsx@@ -84,10 +84,6 @@ const DeleteFolderModal: React.FC<DeleteFolderModalProps> = ({}><div className="space-y-4">- <p className="text-gray-700 dark:text-gray-300">- {t('items.deleteFolderConfirm', { folderName })}- </p>-{/* Option buttons */}<div className="space-y-3 pt-2">{/* Delete folder only - move items to root */}diff --git a/apps/browser-extension/src/entrypoints/popup/components/Folders/FolderModal.tsx b/apps/browser-extension/src/entrypoints/popup/components/Folders/FolderModal.tsxindex 084d87a02..6d1b500a0 100644--- a/apps/browser-extension/src/entrypoints/popup/components/Folders/FolderModal.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/Folders/FolderModal.tsx@@ -52,7 +52,7 @@ const FolderModal: React.FC<FolderModalProps> = ({await onSave(trimmedName);onClose();} catch (err) {- setError(t('items.folderSaveError'));+ setError(t('common.errors.unknownErrorTryAgain'));console.error('Error saving folder:', err);} finally {setIsSubmitting(false);@@ -102,7 +102,6 @@ const FolderModal: React.FC<FolderModalProps> = ({type="text"value={folderName}onChange={(e) => setFolderName(e.target.value)}- placeholder={t('items.folderNamePlaceholder')}autoFocusclassName="w-full p-2 border dark:border-gray-600 rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:ring-blue-500 focus:border-blue-500"/>diff --git a/apps/browser-extension/src/entrypoints/popup/components/Items/ItemNameInput.tsx b/apps/browser-extension/src/entrypoints/popup/components/Items/ItemNameInput.tsxindex 08d4238e9..000346818 100644--- a/apps/browser-extension/src/entrypoints/popup/components/Items/ItemNameInput.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/Items/ItemNameInput.tsx@@ -86,7 +86,7 @@ const ItemNameInput: React.FC<ItemNameInputProps> = ({? 'bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400 hover:bg-primary-200 dark:hover:bg-primary-900/50': 'text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-600'}`}- title={selectedFolder?.Name || t('items.noFolder')}+ title={selectedFolder?.Name || '-'}><svg className="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" />@@ -146,7 +146,7 @@ const ItemNameInput: React.FC<ItemNameInputProps> = ({<svg className={`w-5 h-5 ${!selectedFolderId ? 'text-primary-500' : 'text-gray-400'}`} fill="none" stroke="currentColor" viewBox="0 0 24 24"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4" /></svg>- <span className="font-medium">{t('items.noFolder')}</span>+ <span className="font-medium">—</span>{!selectedFolderId && (<svg className="w-5 h-5 ml-auto text-primary-600 dark:text-primary-400" fill="currentColor" viewBox="0 0 20 20"><path fillRule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clipRule="evenodd" />diff --git a/apps/browser-extension/src/entrypoints/popup/pages/emails/EmailsList.tsx b/apps/browser-extension/src/entrypoints/popup/pages/emails/EmailsList.tsxindex 55ea8b754..3ee8a8ac8 100644--- a/apps/browser-extension/src/entrypoints/popup/pages/emails/EmailsList.tsx+++ b/apps/browser-extension/src/entrypoints/popup/pages/emails/EmailsList.tsx@@ -66,7 +66,7 @@ const EmailsList: React.FC = () => {setEmails(decryptedEmails);} catch (error) {console.error(error);- throw new Error(t('emails.errors.emailLoadError'));+ throw new Error(t('common.errors.unknownError'));}} catch (err) {setError(err instanceof Error ? err.message : t('common.errors.unknownError'));diff --git a/apps/browser-extension/src/i18n/locales/en.json b/apps/browser-extension/src/i18n/locales/en.jsonindex bb45386fb..749f07001 100644--- a/apps/browser-extension/src/i18n/locales/en.json+++ b/apps/browser-extension/src/i18n/locales/en.json@@ -204,11 +204,8 @@"createFolder": "Create Folder","editFolder": "Edit Folder","folderName": "Folder Name",- "folderNamePlaceholder": "Enter folder name","folderNameRequired": "Folder name is required",- "folderSaveError": "Failed to save folder. Please try again.","folder": "Folder",- "noFolder": "No Folder","welcomeTitle": "Welcome to AliasVault!","welcomeDescription": "To use the AliasVault browser extension: navigate to a website and use the AliasVault autofill popup to create a new credential.","noPasskeysFound": "No passkeys have been created yet. Passkeys are created by visiting a website that offers passkeys as an authentication method.",@@ -216,7 +213,6 @@"noMatchingItems": "No matching items found","emptyFolderHint": "To move items to this folder, edit the item and tap the folder icon in the name field.","deleteFolder": "Delete Folder",- "deleteFolderConfirm": "How would you like to delete \"{{folderName}}\"?","deleteFolderKeepItems": "Delete folder only","deleteFolderKeepItemsDescription": "Items will be moved back to the main list.","deleteFolderAndItems": "Delete folder and all items",@@ -266,7 +262,14 @@},"fieldLabels": {"login.url": "Website URL",+ "login.username": "Username",+ "login.password": "Password",+ "alias.first_name": "First Name",+ "alias.last_name": "Last Name","alias.gender": "Gender",+ "alias.birthdate": "Birthdate",+ "login.email": "Email",+ "notes.content": "Notes","card.cardholder_name": "Cardholder Name","card.number": "Card Number","card.expiry_month": "Expiry Month",@@ -288,10 +291,7 @@"attachmentUploader": {"uploading": "Uploading...","uploadSuccess": "Files uploaded successfully.",- "uploadError": "Error uploading files.",- "deleteSuccess": "Attachment deleted successfully.",- "deleteError": "Error deleting attachment.",- "currentAttachments": "Current attachments:"+ "deleteSuccess": "Attachment deleted successfully."},"emails": {"title": "Emails",@@ -312,10 +312,6 @@"hoursAgo_plural": "{{count}} hrs ago","yesterday": "yesterday"},- "errors": {- "emailLoadError": "An error occurred while loading emails. Please try again later.",- "emailUnexpectedError": "An unexpected error occurred while loading emails. Please try again later."- },"apiErrors": {"CLAIM_DOES_NOT_MATCH_USER": "The current chosen email address is already in use. Please change the email address by editing this credential.","CLAIM_DOES_NOT_EXIST": "An error occurred while trying to load the emails. Please try to edit and save the credential entry to synchronize the database, then try again."