Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update translations (#1404)
Leendert de Borst9d4a0d45f78f
diff --git a/apps/browser-extension/src/entrypoints/popup/App.tsx b/apps/browser-extension/src/entrypoints/popup/App.tsxindex efd53271a..47f4da89d 100644--- a/apps/browser-extension/src/entrypoints/popup/App.tsx+++ b/apps/browser-extension/src/entrypoints/popup/App.tsx@@ -194,10 +194,10 @@ const App: React.FC = () => {{ path: '/items', element: <ItemsList />, showBackButton: false },{ path: '/items/folder/:folderId', element: <ItemsList />, showBackButton: true, title: t('items.title') },{ path: '/items/select-type', element: <ItemTypeSelector />, showBackButton: true, title: t('itemTypes.selectType') },- { path: '/items/add', element: <ItemAddEdit />, showBackButton: true, title: 'Add Item' },+ { path: '/items/add', element: <ItemAddEdit />, showBackButton: true, title: t('items.addItem') },{ path: '/items/deleted', element: <RecentlyDeleted />, showBackButton: true, title: t('recentlyDeleted.title') },- { path: '/items/:id', element: <ItemDetails />, showBackButton: true, title: 'Item Details' },- { path: '/items/:id/edit', element: <ItemAddEdit />, showBackButton: true, title: 'Edit Item' },+ { path: '/items/:id', element: <ItemDetails />, showBackButton: true, title: t('items.itemDetails') },+ { path: '/items/:id/edit', element: <ItemAddEdit />, showBackButton: true, title: t('items.editItem') },{ path: '/passkeys/create', element: <PasskeyCreate />, layout: LayoutType.PASSKEY },{ path: '/passkeys/authenticate', element: <PasskeyAuthenticate />, layout: LayoutType.PASSKEY },{ path: '/emails', element: <EmailsList />, showBackButton: false },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 da3b7e125..16d9cd20c 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@@ -27,7 +27,7 @@ const AttachmentUploader: React.FC<AttachmentUploaderProps> = ({return;}- setStatusMessage('Uploading...');+ setStatusMessage(t('attachmentUploader.uploading'));try {const newAttachments = [...attachments];@@ -50,13 +50,13 @@ const AttachmentUploader: React.FC<AttachmentUploaderProps> = ({}onAttachmentsChange(newAttachments);- setStatusMessage('Files uploaded successfully.');+ setStatusMessage(t('attachmentUploader.uploadSuccess'));// Clear status message after 3 secondssetTimeout(() => setStatusMessage(''), 3000);} catch (error) {console.error('Error uploading files:', error);- setStatusMessage('Error uploading files.');+ setStatusMessage(t('attachmentUploader.uploadError'));setTimeout(() => setStatusMessage(''), 3000);}@@ -78,11 +78,11 @@ const AttachmentUploader: React.FC<AttachmentUploaderProps> = ({}onAttachmentsChange(updatedAttachments);- setStatusMessage('Attachment deleted successfully.');+ setStatusMessage(t('attachmentUploader.deleteSuccess'));setTimeout(() => setStatusMessage(''), 3000);} catch (error) {console.error('Error deleting attachment:', error);- setStatusMessage('Error deleting attachment.');+ setStatusMessage(t('attachmentUploader.deleteError'));setTimeout(() => setStatusMessage(''), 3000);}};@@ -108,7 +108,7 @@ const AttachmentUploader: React.FC<AttachmentUploaderProps> = ({{activeAttachments.length > 0 && (<div>- <h4 className="mb-2 text-md font-medium text-gray-900 dark:text-white">Current attachments:</h4>+ <h4 className="mb-2 text-md font-medium text-gray-900 dark:text-white">{t('attachmentUploader.currentAttachments')}</h4><div className="space-y-2">{activeAttachments.map(attachment => (<divdiff --git a/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/FieldHistoryModal.tsx b/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/FieldHistoryModal.tsxindex 156017f18..55a6058b8 100644--- a/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/FieldHistoryModal.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/FieldHistoryModal.tsx@@ -184,7 +184,7 @@ const FieldHistoryModal: React.FC<FieldHistoryModalProps> = ({key={idx}className="flex items-center gap-2 mt-2">- <div className="flex-1 font-mono text-sm bg-white dark:bg-gray-800 rounded px-3 py-2 border border-gray-200 dark:border-gray-600 break-all">+ <div className="flex-1 font-mono text-sm text-gray-900 dark:text-gray-100 bg-white dark:bg-gray-800 rounded px-3 py-2 border border-gray-200 dark:border-gray-600 break-all">{shouldMaskByDefault && !isVisible ? '\u2022'.repeat(12) : value}</div><buttondiff --git a/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/TotpEditor.tsx b/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/TotpEditor.tsxindex 39efc5e26..d0cb19d0f 100644--- a/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/TotpEditor.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/Credentials/Details/TotpEditor.tsx@@ -68,7 +68,7 @@ const TotpEditor: React.FC<TotpEditorProps> = ({throw new Error(t('totp.errors.invalidSecretKey'));}- return { secretKey, name: name || 'Authenticator' };+ return { secretKey, name: name || t('totp.defaultName') };};/**diff --git a/apps/browser-extension/src/entrypoints/popup/components/Items/ItemCard.tsx b/apps/browser-extension/src/entrypoints/popup/components/Items/ItemCard.tsxindex ccb976398..31608b503 100644--- a/apps/browser-extension/src/entrypoints/popup/components/Items/ItemCard.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/Items/ItemCard.tsx@@ -1,4 +1,5 @@import React from 'react';+import { useTranslation } from 'react-i18next';import { useNavigate } from 'react-router-dom';import type { Item } from '@/utils/dist/core/models/vault';@@ -19,6 +20,7 @@ type ItemCardProps = {**/const ItemCard: React.FC<ItemCardProps> = ({ item, showFolderPath = false }) => {+ const { t } = useTranslation();const navigate = useNavigate();/**@@ -51,7 +53,7 @@ const ItemCard: React.FC<ItemCardProps> = ({ item, showFolderPath = false }) =>* Get the item name, trimming it to maximum length so it doesn't overflow the UI.*/const getItemName = (itm: Item): string => {- let returnValue = 'Untitled';+ let returnValue = t('items.untitled');if (itm.Name) {returnValue = itm.Name;diff --git a/apps/browser-extension/src/entrypoints/popup/pages/credentials/ItemDetails.tsx b/apps/browser-extension/src/entrypoints/popup/pages/credentials/ItemDetails.tsxindex 52c40ccdc..6584f02e7 100644--- a/apps/browser-extension/src/entrypoints/popup/pages/credentials/ItemDetails.tsx+++ b/apps/browser-extension/src/entrypoints/popup/pages/credentials/ItemDetails.tsx@@ -121,7 +121,7 @@ const ItemDetails: React.FC = (): React.ReactElement => {<ItemIcon item={item} className="w-12 h-12 rounded-lg" /><div><h1 className="text-lg font-bold text-gray-900 dark:text-white">- {item.Name || 'Untitled Item'}+ {item.Name || t('items.untitledItem')}</h1>{/* Display URLs prominently below title */}{urlFields.length > 0 && (diff --git a/apps/browser-extension/src/entrypoints/popup/pages/items/ItemsList.tsx b/apps/browser-extension/src/entrypoints/popup/pages/items/ItemsList.tsxindex 4d39e85fb..d06ab08ba 100644--- a/apps/browser-extension/src/entrypoints/popup/pages/items/ItemsList.tsx+++ b/apps/browser-extension/src/entrypoints/popup/pages/items/ItemsList.tsx@@ -258,13 +258,13 @@ const ItemsList: React.FC = () => {{!PopoutUtility.isPopup() && (<HeaderButtononClick={() => PopoutUtility.openInNewPopup()}- title="Open in new window"+ title={t('common.openInNewWindow')}iconType={HeaderIconType.EXPAND}/>)}<HeaderButtononClick={handleAddItem}- title="Add new item"+ title={t('items.addNewItem')}iconType={HeaderIconType.PLUS}/></div>@@ -272,7 +272,7 @@ const ItemsList: React.FC = () => {setHeaderButtons(headerButtonsJSX);return () => setHeaderButtons(null);- }, [setHeaderButtons, handleAddItem]);+ }, [setHeaderButtons, handleAddItem, t]);/*** Load items list on mount and on sqlite client change.diff --git a/apps/browser-extension/src/i18n/locales/en.json b/apps/browser-extension/src/i18n/locales/en.jsonindex 81c1b5f9c..0d42e782a 100644--- a/apps/browser-extension/src/i18n/locales/en.json+++ b/apps/browser-extension/src/i18n/locales/en.json@@ -56,6 +56,7 @@"back": "Back","next": "Next","use": "Use",+ "add": "Add","delete": "Delete","undo": "Undo","save": "Save",@@ -267,6 +268,12 @@},"items": {"title": "Items",+ "addItem": "Add Item",+ "addNewItem": "Add new item",+ "itemDetails": "Item Details",+ "editItem": "Edit Item",+ "untitled": "Untitled",+ "untitledItem": "Untitled Item","folders": "folders","items": "items","newFolder": "New Folder",@@ -361,10 +368,19 @@"nameOptional": "Name (optional)","secretKey": "Secret Key","saveToViewCode": "Save to view code",+ "defaultName": "Authenticator","errors": {"invalidSecretKey": "Invalid secret key format."}},+ "attachmentUploader": {+ "uploading": "Uploading...",+ "uploadSuccess": "Files uploaded successfully.",+ "uploadError": "Error uploading files.",+ "deleteSuccess": "Attachment deleted successfully.",+ "deleteError": "Error deleting attachment.",+ "currentAttachments": "Current attachments:"+ },"emails": {"title": "Emails","deleteEmailTitle": "Delete Email",