Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Fix mobile app login error to use correct translation key

Leendert de Borstc7448f7e992d
diff --git a/apps/mobile-app/utils/WebApiService.ts b/apps/mobile-app/utils/WebApiService.ts
index 6111b3550..e960af87d 100644
--- a/apps/mobile-app/utils/WebApiService.ts
+++ b/apps/mobile-app/utils/WebApiService.ts
@@ -145,10 +145,10 @@ export class WebApiService {
if (isSelfHosted) {
// For self-hosted instances, throw error with translation key
- throw new LocalAuthError('networkErrorSelfHosted');
+ throw new LocalAuthError(i18n.t('auth.errors.networkErrorSelfHosted'));
} else {
// For the default API URL, throw error with translation key
- throw new LocalAuthError('networkError');
+ throw new LocalAuthError(i18n.t('auth.errors.networkError'));
}
}
}