mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-27 02:52:04 -04:00
Update translations (#1274)
This commit is contained in:
committed by
Leendert de Borst
parent
2e4caf8261
commit
c6028c4f32
@@ -111,7 +111,7 @@ export async function handleStoreVault(
|
||||
return { success: true };
|
||||
} catch (error) {
|
||||
console.error('Failed to store vault:', error);
|
||||
return { success: false, error: await t('common.errors.failedToStoreVault') };
|
||||
return { success: false, error: await t('common.errors.unknownError') };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,55 +43,52 @@ export function useVaultMutate() : {
|
||||
|
||||
setSyncStatus(t('common.uploadingVaultToServer'));
|
||||
|
||||
try {
|
||||
// Upload the updated vault to the server.
|
||||
const base64Vault = dbContext.sqliteClient!.exportToBase64();
|
||||
// Upload the updated vault to the server.
|
||||
const base64Vault = dbContext.sqliteClient!.exportToBase64();
|
||||
|
||||
// Get encryption key from background worker
|
||||
const encryptionKey = await sendMessage('GET_ENCRYPTION_KEY', {}, 'background') as string;
|
||||
// Get encryption key from background worker
|
||||
const encryptionKey = await sendMessage('GET_ENCRYPTION_KEY', {}, 'background') as string;
|
||||
|
||||
// Encrypt the vault.
|
||||
const encryptedVaultBlob = await EncryptionUtility.symmetricEncrypt(
|
||||
base64Vault,
|
||||
encryptionKey
|
||||
);
|
||||
// Encrypt the vault.
|
||||
const encryptedVaultBlob = await EncryptionUtility.symmetricEncrypt(
|
||||
base64Vault,
|
||||
encryptionKey
|
||||
);
|
||||
|
||||
const request: UploadVaultRequest = {
|
||||
vaultBlob: encryptedVaultBlob,
|
||||
};
|
||||
const request: UploadVaultRequest = {
|
||||
vaultBlob: encryptedVaultBlob,
|
||||
};
|
||||
|
||||
const response = await sendMessage('UPLOAD_VAULT', request, 'background') as messageVaultUploadResponse;
|
||||
const response = await sendMessage('UPLOAD_VAULT', request, 'background') as messageVaultUploadResponse;
|
||||
|
||||
/*
|
||||
* If we get here, it means we have a valid connection to the server.
|
||||
* TODO: offline mode is not implemented for browser extension yet.
|
||||
* authContext.setOfflineMode(false);
|
||||
*/
|
||||
/*
|
||||
* If we get here, it means we have a valid connection to the server.
|
||||
* TODO: offline mode is not implemented for browser extension yet.
|
||||
* authContext.setOfflineMode(false);
|
||||
*/
|
||||
|
||||
if (response.status === 0 && response.newRevisionNumber) {
|
||||
await dbContext.setCurrentVaultRevisionNumber(response.newRevisionNumber);
|
||||
options.onSuccess?.();
|
||||
} else if (response.status === 1) {
|
||||
// Note: vault merge is no longer allowed by the API as of 0.20.0, updates with the same revision number are rejected. So this check can be removed later.
|
||||
throw new Error('Vault merge required. Please login via the web app to merge the multiple pending updates to your vault.');
|
||||
} else if (response.status === 2) {
|
||||
throw new Error('Your vault is outdated. Please login on the AliasVault website and follow the steps.');
|
||||
} else {
|
||||
throw new Error('Failed to upload vault to server. Please try again by re-opening the app.');
|
||||
}
|
||||
} catch (error) {
|
||||
// Check if it's a network error
|
||||
if (error instanceof Error && (error.message.includes('network') || error.message.includes('timeout'))) {
|
||||
/*
|
||||
* Network error, mark as offline and track pending changes
|
||||
* TODO: offline mode is not implemented for browser extension yet.
|
||||
* authContext.setOfflineMode(true);
|
||||
*/
|
||||
options.onError?.(new Error('Network error'));
|
||||
return;
|
||||
}
|
||||
throw error;
|
||||
if (response.status === 0 && response.newRevisionNumber) {
|
||||
await dbContext.setCurrentVaultRevisionNumber(response.newRevisionNumber);
|
||||
options.onSuccess?.();
|
||||
} else if (response.status === 1) {
|
||||
// Note: vault merge is no longer allowed by the API as of 0.20.0, updates with the same revision number are rejected. So this check can be removed later.
|
||||
throw new Error('Vault merge required. Please login via the web app to merge the multiple pending updates to your vault.');
|
||||
} else if (response.status === 2) {
|
||||
throw new Error(t('common.errors.failedToUploadVault'));
|
||||
} else {
|
||||
throw new Error(t('common.errors.failedToUploadVault'));
|
||||
}
|
||||
|
||||
// Check if it's a network error
|
||||
/*
|
||||
* if (error instanceof Error && (error.message.includes('network') || error.message.includes('timeout'))) {
|
||||
*
|
||||
* // Network error, mark as offline and track pending changes - TODO: offline mode is not implemented for browser extension yet.
|
||||
* // authContext.setOfflineMode(true);
|
||||
*options.onError?.(new Error('Network error'));
|
||||
*return;
|
||||
*}
|
||||
*/
|
||||
}, [dbContext, t]);
|
||||
|
||||
/**
|
||||
@@ -135,7 +132,7 @@ export function useVaultMutate() : {
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Error during vault mutation:', error);
|
||||
options.onError?.(error instanceof Error ? error : new Error('Unknown error'));
|
||||
options.onError?.(error instanceof Error ? error : new Error(t('common.errors.unknownError')));
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
setSyncStatus('');
|
||||
|
||||
@@ -165,7 +165,7 @@ const Upgrade: React.FC = () => {
|
||||
console.debug('executeVaultMutation done?');
|
||||
} catch (error) {
|
||||
console.error('Upgrade failed:', error);
|
||||
setError(error instanceof Error ? error.message : t('upgrade.alerts.unknownErrorDuringUpgrade'));
|
||||
setError(error instanceof Error ? error.message : t('common.errors.unknownError'));
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
}
|
||||
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"errors": {
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Cancel",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Vorgang wird ausgeführt...",
|
||||
"loadMore": "Mehr laden",
|
||||
"errors": {
|
||||
"VaultOutdated": "Dein Tresor ist veraltet. Bitte melde Dich auf der AliasVault-Webseite an und folge den Anweisungen.",
|
||||
"serverNotAvailable": "Der AliasVault-Server konnte nicht erreicht werden. Bitte versuche es später noch einmal oder kontaktiere den Support, falls das Problem weiterhin besteht.",
|
||||
"clientVersionNotSupported": "Diese Version der AliasVault-Browser-Erweiterung wird vom Server nicht mehr unterstützt. Bitte aktualisiere Deine Browser-Erweiterung auf die neueste Version.",
|
||||
"serverVersionNotSupported": "Der AliasVault-Server muss auf eine neuere Version aktualisiert werden, um diese Browser-Erweiterung nutzen zu können. Bitte kontaktiere den Support, falls Du Hilfe benötigst.",
|
||||
"unknownError": "Ein unbekannter Fehler ist aufgetreten",
|
||||
"failedToStoreVault": "Fehler beim Speichern des Tresors",
|
||||
"vaultNotAvailable": "Tresor nicht verfügbar",
|
||||
"failedToRetrieveData": "Abruf der Daten fehlgeschlagen",
|
||||
"vaultIsLocked": "Der Tresor ist gesperrt.",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Abbrechen",
|
||||
"continueUpgrade": "Aktualisierung fortsetzen",
|
||||
"upgradeFailed": "Aktualisierung fehlgeschlagen",
|
||||
"failedToApplyMigration": "Migration fehlgeschlagen ({{current}} von {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Bei der Aktualisierung ist ein unbekannter Fehler aufgetreten. Bitte versuche es erneut."
|
||||
"failedToApplyMigration": "Migration fehlgeschlagen ({{current}} von {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,13 +89,11 @@
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"errors": {
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"browserExtensionOutdated": "This browser extension is outdated and cannot be used to access this vault. Please update this browser extension to continue.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
@@ -387,8 +385,7 @@
|
||||
"cancel": "Cancel",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"errors": {
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Cancel",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Suoritetaan toimintoa...",
|
||||
"loadMore": "Lataa lisää",
|
||||
"errors": {
|
||||
"VaultOutdated": "Holvisi on vanhentunut. Kirjaudu AliasVaultin kotisivulle ja noudata ohjeita.",
|
||||
"serverNotAvailable": "AliasVault-palvelin ei ole käytettävissä. Yritä myöhemmin uudelleen tai ota yhteyttä tukeen, jos ongelma jatkuu.",
|
||||
"clientVersionNotSupported": "Palvelin ei enää tue tätä AliasVault-selainlaajennuksen versiota. Ole hyvä ja päivitä selaimen laajennus uusimpaan versioon.",
|
||||
"serverVersionNotSupported": "AliasVault-palvelin on päivitettävä uudempaan versioon, jotta voit käyttää tätä selainlaajennusta. Ota yhteyttä tukeen, jos tarvitset apua.",
|
||||
"unknownError": "Tapahtui tuntematon virhe",
|
||||
"failedToStoreVault": "Holvin tallentaminen epäonnistui",
|
||||
"vaultNotAvailable": "Holvi ei ole käytettävissä",
|
||||
"failedToRetrieveData": "Tietojen nouto epäonnistui",
|
||||
"vaultIsLocked": "Holvi on lukittu",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Peruuta",
|
||||
"continueUpgrade": "Jatka päivitystä",
|
||||
"upgradeFailed": "Päivitys epäonnistui",
|
||||
"failedToApplyMigration": "Tietojen siirto epäonnistui {{current}} / {{total}} ",
|
||||
"unknownErrorDuringUpgrade": "Päivityksen aikana tapahtui tuntematon virhe. Yritä uudelleen."
|
||||
"failedToApplyMigration": "Tietojen siirto epäonnistui {{current}} / {{total}} "
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Exécution de l'opération...",
|
||||
"loadMore": "Voir plus",
|
||||
"errors": {
|
||||
"VaultOutdated": "Votre coffre est obsolète. Veuillez vous connecter sur le site AliasVault et suivre les étapes.",
|
||||
"serverNotAvailable": "Le serveur d'AliasVault n'est pas disponible. Veuillez réessayer plus tard ou contacter le support si le problème persiste.",
|
||||
"clientVersionNotSupported": "Cette version de l'extension de navigateur AliasVault n'est plus prise en charge par le serveur. Veuillez mettre à jour votre extension de navigateur à la dernière version.",
|
||||
"serverVersionNotSupported": "Le serveur d'AliasVault doit être mis à jour vers une version plus récente afin d'utiliser cette extension de navigateur. Veuillez contacter le support si vous avez besoin d'aide.",
|
||||
"unknownError": "Une erreur inconnue s'est produite",
|
||||
"failedToStoreVault": "Échec du stockage du coffre",
|
||||
"vaultNotAvailable": "Coffre non disponible",
|
||||
"failedToRetrieveData": "Échec de la récupération des données",
|
||||
"vaultIsLocked": "Le coffre est verrouillé",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Annuler",
|
||||
"continueUpgrade": "Continuer la mise à jour",
|
||||
"upgradeFailed": "Échec de la mise à niveau",
|
||||
"failedToApplyMigration": "Impossible d'appliquer la migration ({{current}} sur {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Une erreur inconnue s'est produite pendant la mise à niveau. Veuillez réessayer."
|
||||
"failedToApplyMigration": "Impossible d'appliquer la migration ({{current}} sur {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "הפעולה רצה…",
|
||||
"loadMore": "לטעון עוד",
|
||||
"errors": {
|
||||
"VaultOutdated": "הכספת שלך לא עדכנית. נא להיכנס לאתר AliasVault ולעקוב אחר ההנחיות.",
|
||||
"serverNotAvailable": "שרת ה־AliasVault לא זמין. נא לנסות שוב מאוחר יותר או ליצור קשר עם התמיכה אם הבעיה נשנית.",
|
||||
"clientVersionNotSupported": "הגרסה הזאת של הרחבת הדפדפן של AliasVault לא נתמכת עוד על ידי השרת. נא לעדכן את הרחבת הדפדפן שלך לגרסה העדכנית ביותר.",
|
||||
"serverVersionNotSupported": "יש לעדכן את שרת AliasVault לגרסה חדשה יותר כדי להשתמש בהרחבת הדפדפן הזאת. נא ליצור קשר עם התמיכה לקבלת עזרה.",
|
||||
"unknownError": "אירעה שגיאה לא ידועה",
|
||||
"failedToStoreVault": "אחסון הכספת נכשל",
|
||||
"vaultNotAvailable": "הכספת לא זמינה",
|
||||
"failedToRetrieveData": "משיכת הנתונים נכשלה",
|
||||
"vaultIsLocked": "הכספת נעולה",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "ביטול",
|
||||
"continueUpgrade": "להמשיך בשדרוג",
|
||||
"upgradeFailed": "השדרוג נכשל",
|
||||
"failedToApplyMigration": "החלת ההסבה נכשלה ({{current}} מתוך {{total}})",
|
||||
"unknownErrorDuringUpgrade": "אירעה שגיאה בלתי ידועה במהלך השדרוג. נא לנסות שוב."
|
||||
"failedToApplyMigration": "החלת ההסבה נכשלה ({{current}} מתוך {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Esecuzione operazione...",
|
||||
"loadMore": "Carica altro",
|
||||
"errors": {
|
||||
"VaultOutdated": "La tua cassaforte è obsoleta. Per favore accedi al sito di AliasVault e segui le istruzioni.",
|
||||
"serverNotAvailable": "Il server di AliasVault non è disponibile. Riprova più tardi o contatta il supporto se il problema persiste.",
|
||||
"clientVersionNotSupported": "Questa versione dell'estensione del browser AliasVault non è più supportata dal server. Aggiorna l'estensione alla versione più recente.",
|
||||
"serverVersionNotSupported": "Il server di AliasVault necessita un aggiornamento a una versione più recente per poter usare questa estensione. Contatta il supporto se hai bisogno di assistenza.",
|
||||
"unknownError": "Si è verificato un errore sconosciuto",
|
||||
"failedToStoreVault": "Salvataggio cassaforte non riuscito",
|
||||
"vaultNotAvailable": "Cassaforte non disponibile",
|
||||
"failedToRetrieveData": "Recupero dati non riuscito",
|
||||
"vaultIsLocked": "La cassaforte è bloccata",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Annulla",
|
||||
"continueUpgrade": "Continua aggiornamento",
|
||||
"upgradeFailed": "Aggiornamento non riuscito",
|
||||
"failedToApplyMigration": "Impossibile eseguire la migrazione ({{current}} di {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Si è verificato un errore sconosciuto durante l'aggiornamento. Riprova."
|
||||
"failedToApplyMigration": "Impossibile eseguire la migrazione ({{current}} di {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Actie uitvoeren...",
|
||||
"loadMore": "Laad meer",
|
||||
"errors": {
|
||||
"VaultOutdated": "Je vault is verouderd. Log in op de AliasVault website en volg de stappen.",
|
||||
"serverNotAvailable": "De AliasVault server is niet beschikbaar. Probeer het later opnieuw of neem contact op met de ondersteuning als het probleem aanhoudt.",
|
||||
"clientVersionNotSupported": "Deze versie van de AliasVault browserextensie wordt niet meer ondersteund door de server. Update je browserextensie naar de nieuwste versie.",
|
||||
"serverVersionNotSupported": "De AliasVault server moet worden bijgewerkt naar een nieuwere versie om deze browserextensie te kunnen gebruiken. Neem contact op met support als je hulp nodig hebt.",
|
||||
"unknownError": "Er is een onbekende fout opgetreden",
|
||||
"failedToStoreVault": "Vault opslaan mislukt",
|
||||
"vaultNotAvailable": "Vault niet beschikbaar",
|
||||
"failedToRetrieveData": "Gegevens ophalen mislukt",
|
||||
"vaultIsLocked": "Vault is vergrendeld",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Annuleren",
|
||||
"continueUpgrade": "Verdergaan",
|
||||
"upgradeFailed": "Upgrade mislukt",
|
||||
"failedToApplyMigration": "Kon migratie niet toepassen ({{current}} van {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Er is een onbekende fout opgetreden tijdens de upgrade. Probeer het opnieuw."
|
||||
"failedToApplyMigration": "Kon migratie niet toepassen ({{current}} van {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"errors": {
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Cancel",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Выполнение операций...",
|
||||
"loadMore": "Загрузить ещё",
|
||||
"errors": {
|
||||
"VaultOutdated": "Ваше хранилище устарело. Пожалуйста, войдите на сайт AliasVault и следуйте инструкциям.",
|
||||
"serverNotAvailable": "Сервер AliasVault недоступен. Пожалуйста, повторите попытку позже или обратитесь в службу поддержки, если проблема не устранится.",
|
||||
"clientVersionNotSupported": "Эта версия браузерного расширения AliasVault больше не поддерживается сервером. Пожалуйста, обновите расширение вашего браузера до последней версии.",
|
||||
"serverVersionNotSupported": "Чтобы использовать это расширение для браузера, сервер AliasVault необходимо обновить до более новой версии. Пожалуйста, обратитесь в службу поддержки, если вам нужна помощь.",
|
||||
"unknownError": "Произошла неизвестная ошибка",
|
||||
"failedToStoreVault": "Не удалось сохранить хранилище",
|
||||
"vaultNotAvailable": "Хранилище недоступно",
|
||||
"failedToRetrieveData": "Не удалось получить данные",
|
||||
"vaultIsLocked": "Хранилище заблокировано",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Отменить",
|
||||
"continueUpgrade": "Продолжить обновление",
|
||||
"upgradeFailed": "Ошибка обновления",
|
||||
"failedToApplyMigration": "Не удалось применить перенос ({{current}} из {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Во время обновления произошла неизвестная ошибка. Пожалуйста, попробуйте снова."
|
||||
"failedToApplyMigration": "Не удалось применить перенос ({{current}} из {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"errors": {
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Cancel",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"errors": {
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Cancel",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "Виконання операції...",
|
||||
"loadMore": "Завантажити ще",
|
||||
"errors": {
|
||||
"VaultOutdated": "Ваше сховище застаріло. Будь ласка, увійдіть на вебсайт AliasVault та виконайте наведені нижче дії.",
|
||||
"serverNotAvailable": "Не вдалося зв’язатися зі сервером AliasVault. Будь ласка, спробуйте пізніше або зверніться до служби підтримки, якщо проблема не зникне.",
|
||||
"clientVersionNotSupported": "Ця версія розширення браузера AliasVault більше не підтримується сервером. Будь ласка, оновіть розширення браузера до останньої версії.",
|
||||
"serverVersionNotSupported": "Щоб використовувати це розширення браузера, потрібно оновити сервер AliasVault до новішої версії. Зверніться до служби підтримки, якщо вам потрібна допомога.",
|
||||
"unknownError": "Сталася невідома помилка",
|
||||
"failedToStoreVault": "Не вдалося зберегти сховище",
|
||||
"vaultNotAvailable": "Сховище недоступне",
|
||||
"failedToRetrieveData": "Не вдалося отримати дані",
|
||||
"vaultIsLocked": "Сховище заблоковано",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "Скасувати",
|
||||
"continueUpgrade": "Продовжити оновлення",
|
||||
"upgradeFailed": "Помилка оновлення",
|
||||
"failedToApplyMigration": "Не вдалося застосувати міграцію ({{current}} з {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Під час оновлення сталася невідома помилка. Спробуйте ще раз."
|
||||
"failedToApplyMigration": "Не вдалося застосувати міграцію ({{current}} з {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,10 @@
|
||||
"executingOperation": "执行操作中……",
|
||||
"loadMore": "加载更多",
|
||||
"errors": {
|
||||
"VaultOutdated": "你的保险库版本多低。请登录AliasVault网站并按照步骤操作。",
|
||||
"serverNotAvailable": "AliasVault服务器不可用。请稍后重试,若问题持续请联系支持人员。",
|
||||
"clientVersionNotSupported": "此版本的AliasVault浏览器扩展已不被服务器支持。请将浏览器扩展更新到最新版本。",
|
||||
"serverVersionNotSupported": "AliasVault服务器需要更新到新版本才能使用此浏览器扩展。如需帮助,请联系支持人员。",
|
||||
"unknownError": "发生未知错误",
|
||||
"failedToStoreVault": "存储保险库失败",
|
||||
"vaultNotAvailable": "保险库不可用",
|
||||
"failedToRetrieveData": "无法检索数据",
|
||||
"vaultIsLocked": "保险库已锁定",
|
||||
@@ -386,8 +384,7 @@
|
||||
"cancel": "取消",
|
||||
"continueUpgrade": "继续升级",
|
||||
"upgradeFailed": "升级失败",
|
||||
"failedToApplyMigration": "应用迁移失败({{current}} / {{total}})",
|
||||
"unknownErrorDuringUpgrade": "升级过程中发生未知错误。请重试。"
|
||||
"failedToApplyMigration": "应用迁移失败({{current}} / {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,7 @@
|
||||
import type { StatusResponse, VaultResponse } from '@/utils/dist/shared/models/webapi';
|
||||
import type { StatusResponse } from '@/utils/dist/shared/models/webapi';
|
||||
|
||||
import { AppInfo } from "./AppInfo";
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
|
||||
import { storage } from '#imports';
|
||||
|
||||
type RequestInit = globalThis.RequestInit;
|
||||
|
||||
@@ -61,7 +61,7 @@ export default function IdentityGeneratorSettingsScreen(): React.ReactNode {
|
||||
pendingChanges.current = {};
|
||||
} catch (error) {
|
||||
console.error('Error loading identity generator settings:', error);
|
||||
Alert.alert(t('common.error'), t('common.unknownError'));
|
||||
Alert.alert(t('common.error'), t('common.errors.unknownError'));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -262,7 +262,7 @@ export default function ImportExportScreen(): React.ReactNode {
|
||||
console.error('Export error:', error);
|
||||
Alert.alert(
|
||||
t('common.error'),
|
||||
t('common.unknownError')
|
||||
t('common.errors.unknownError')
|
||||
);
|
||||
} finally {
|
||||
setIsExporting(false);
|
||||
|
||||
@@ -76,7 +76,7 @@ export default function PasswordGeneratorSettingsScreen(): React.ReactNode {
|
||||
console.debug('Settings loaded and initialized');
|
||||
} catch (error) {
|
||||
console.error('Error loading password generator settings:', error);
|
||||
Alert.alert(t('common.error'), t('common.unknownError'));
|
||||
Alert.alert(t('common.error'), t('common.errors.unknownError'));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ export default function UpgradeScreen() : React.ReactNode {
|
||||
|
||||
} catch (error) {
|
||||
console.error('Upgrade failed:', error);
|
||||
Alert.alert(t('upgrade.alerts.upgradeFailed'), error instanceof Error ? error.message : t('upgrade.alerts.unknownErrorDuringUpgrade'));
|
||||
Alert.alert(t('upgrade.alerts.upgradeFailed'), error instanceof Error ? error.message : t('common.errors.unknownError'));
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
setUpgradeStatus(t('upgrade.status.preparingUpgrade'));
|
||||
|
||||
@@ -318,10 +318,10 @@ export function useVaultMutate() : {
|
||||
Toast.show({
|
||||
type: 'error',
|
||||
text1: t('vault.errors.operationFailed'),
|
||||
text2: error instanceof Error ? error.message : t('common.unknownError'),
|
||||
text2: error instanceof Error ? error.message : t('common.errors.unknownError'),
|
||||
position: 'bottom'
|
||||
});
|
||||
options.onError?.(error instanceof Error ? error : new Error(t('common.unknownError')));
|
||||
options.onError?.(error instanceof Error ? error : new Error(t('common.errors.unknownError')));
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
setSyncStatus('');
|
||||
@@ -399,10 +399,10 @@ export function useVaultMutate() : {
|
||||
Toast.show({
|
||||
type: 'error',
|
||||
text1: t('vault.errors.operationFailed'),
|
||||
text2: error instanceof Error ? error.message : t('common.unknownError'),
|
||||
text2: error instanceof Error ? error.message : t('common.errors.unknownError'),
|
||||
position: 'bottom'
|
||||
});
|
||||
options.onError?.(error instanceof Error ? error : new Error(t('common.unknownError')));
|
||||
options.onError?.(error instanceof Error ? error : new Error(t('common.errors.unknownError')));
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
setSyncStatus('');
|
||||
|
||||
@@ -154,7 +154,7 @@ export const useVaultSync = () : {
|
||||
await withMinimumDelay(() => Promise.resolve(onSuccess?.(false)), 300, enableDelay);
|
||||
return false;
|
||||
} catch (err) {
|
||||
const errorMessage = err instanceof Error ? err.message : t('common.unknownError');
|
||||
const errorMessage = err instanceof Error ? err.message : t('common.errors.unknownError');
|
||||
console.error('Vault sync error:', err);
|
||||
|
||||
// Check if it's a network error
|
||||
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "Nutzt Du einen selbst gehosteten Server, musst Du Deine Instanz ebenfalls updaten. Andernfalls kannst Du Dich im Web-Client nicht mehr anmelden.",
|
||||
"continueUpgrade": "Aktualisierung fortsetzen",
|
||||
"upgradeFailed": "Aktualisierung fehlgeschlagen",
|
||||
"failedToApplyMigration": "Migration fehlgeschlagen ({{current}} von {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Bei der Aktualisierung ist ein unbekannter Fehler aufgetreten. Bitte versuche es erneut."
|
||||
"failedToApplyMigration": "Migration fehlgeschlagen ({{current}} von {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,9 @@
|
||||
"loadMore": "Load more",
|
||||
"use": "Use",
|
||||
"confirm": "Confirm",
|
||||
"unknownError": "Unknown error"
|
||||
"errors": {
|
||||
"unknownError": "An unknown error occurred. Please try again."
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"login": "Log in",
|
||||
@@ -501,8 +503,7 @@
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "Jos käytät itseylläpidettyä palvelinta (Self-hosted), varmista että päivität myös itseylläpidetyn yksikkösi, koska muuten kirjautuminen web-palveluun ja sovellukseen voivat lakata toimimasta.",
|
||||
"continueUpgrade": "Jatka päivitystä",
|
||||
"upgradeFailed": "Päivitys epäonnistui",
|
||||
"failedToApplyMigration": "Tietokannan siirto {{current}} / {{total}} epäonnistui.",
|
||||
"unknownErrorDuringUpgrade": "Päivityksen aikana tapahtui tuntematon virhe. Yritä uudelleen."
|
||||
"failedToApplyMigration": "Tietokannan siirto {{current}} / {{total}} epäonnistui."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "אם מדובר בשרת שמתארח עצמאית, נא לוודא שהעותק שמתארח אצלך גם כן מתעדכן כי אחרת הכניסה לאתר תפסיק לעבוד.",
|
||||
"continueUpgrade": "להמשיך בשדרוג",
|
||||
"upgradeFailed": "השדרוג נכשל",
|
||||
"failedToApplyMigration": "החלת ההסבה נכשלה ({{current}} מתוך {{total}})",
|
||||
"unknownErrorDuringUpgrade": "אירעה שגיאה בלתי ידועה במהלך השדרוג. נא לנסות שוב."
|
||||
"failedToApplyMigration": "החלת ההסבה נכשלה ({{current}} מתוך {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "Se usi un server self-hosted, assicurati di aggiornare anche la tua istanza self-hosted altrimenti l'accesso al client web smetterà di funzionare.",
|
||||
"continueUpgrade": "Continua aggiornamento",
|
||||
"upgradeFailed": "Aggiornamento fallito",
|
||||
"failedToApplyMigration": "Impossibile applicare la migrazione ({{current}} di {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Si è verificato un errore sconosciuto durante l'aggiornamento. Riprova."
|
||||
"failedToApplyMigration": "Impossibile applicare la migrazione ({{current}} di {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "Als je een self-hosted server gebruikt, zorg er dan voor dat je ook je eigen self-hosted instantie bijwerkt, omdat anders het inloggen via de web client niet meer zal werken.",
|
||||
"continueUpgrade": "Verdergaan",
|
||||
"upgradeFailed": "Upgrade mislukt",
|
||||
"failedToApplyMigration": "Kon migratie niet toepassen ({{current}} van {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Er is een onbekende fout opgetreden tijdens de upgrade. Probeer het opnieuw."
|
||||
"failedToApplyMigration": "Kon migratie niet toepassen ({{current}} van {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "Если вы используете автономный сервер, обязательно обновите свой автономный экземпляр, так как в противном случае вход в веб-клиент перестанет работать.",
|
||||
"continueUpgrade": "Продолжить обновление",
|
||||
"upgradeFailed": "Ошибка обновления",
|
||||
"failedToApplyMigration": "Не удалось применить перенос ({{current}} из {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Во время обновления произошла неизвестная ошибка. Пожалуйста, попробуйте снова."
|
||||
"failedToApplyMigration": "Не удалось применить перенос ({{current}} из {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "Якщо ви використовуєте власний сервер, обов’язково оновіть і свій власний екземпляр, інакше вхід до вебклієнта перестане працювати.",
|
||||
"continueUpgrade": "Продовжити оновлення",
|
||||
"upgradeFailed": "Помилка оновлення",
|
||||
"failedToApplyMigration": "Не вдалося застосувати міграцію ({{current}} з {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Під час оновлення сталася невідома помилка. Спробуйте ще раз."
|
||||
"failedToApplyMigration": "Не вдалося застосувати міграцію ({{current}} з {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -500,8 +500,7 @@
|
||||
"selfHostedWarning": "如果你使用的是自托管服务器,请确保同时更新你的自托管实例,否则网页客户端将无法登录。",
|
||||
"continueUpgrade": "继续升级",
|
||||
"upgradeFailed": "升级失败",
|
||||
"failedToApplyMigration": "应用迁移失败({{current}} / {{total}})",
|
||||
"unknownErrorDuringUpgrade": "升级过程中发生未知错误。请重试。"
|
||||
"failedToApplyMigration": "应用迁移失败({{current}} / {{total}})"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user