diff --git a/apps/clock/apps/web/src/routes/(auth)/login/+page.svelte b/apps/clock/apps/web/src/routes/(auth)/login/+page.svelte
index d38e1471f..2e193a553 100644
--- a/apps/clock/apps/web/src/routes/(auth)/login/+page.svelte
+++ b/apps/clock/apps/web/src/routes/(auth)/login/+page.svelte
@@ -2,13 +2,13 @@
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { browser } from '$app/environment';
+ import { locale } from 'svelte-i18n';
import { LoginPage } from '@manacore/shared-auth-ui';
+ import { getLoginTranslations } from '@manacore/shared-i18n';
+ import { ClockLogo } from '@manacore/shared-branding';
import { authStore } from '$lib/stores/auth.svelte';
import '$lib/i18n';
- let error = $state('');
- let loading = $state(false);
-
// Read verification status from query params (set after email verification)
const verified = $derived($page.url.searchParams.get('verified') === 'true');
const initialEmail = $derived($page.url.searchParams.get('email') || '');
@@ -31,30 +31,37 @@
return '/';
});
- async function handleLogin(email: string, password: string) {
- loading = true;
- error = '';
+ // Get translations based on current locale
+ const translations = $derived(getLoginTranslations($locale || 'de'));
- const result = await authStore.signIn(email, password);
+ async function handleSignIn(email: string, password: string) {
+ return authStore.signIn(email, password);
+ }
- if (result.success) {
- goto(redirectTo);
- } else {
- error = result.error || 'Anmeldung fehlgeschlagen';
- }
-
- loading = false;
+ async function handleResendVerification(email: string) {
+ return authStore.resendVerificationEmail(email);
}
+
+ {translations.title} | Clock
+
+
diff --git a/apps/manacore/apps/web/src/routes/(auth)/register/+page.svelte b/apps/manacore/apps/web/src/routes/(auth)/register/+page.svelte
index 555be440d..8c7e2e6fa 100644
--- a/apps/manacore/apps/web/src/routes/(auth)/register/+page.svelte
+++ b/apps/manacore/apps/web/src/routes/(auth)/register/+page.svelte
@@ -1,14 +1,20 @@
+
+ {translations.title} | ManaCore
+
+
{#snippet appSlider()}
diff --git a/apps/manadeck/apps/web/src/routes/(auth)/register/+page.svelte b/apps/manadeck/apps/web/src/routes/(auth)/register/+page.svelte
index fb9962399..955995698 100644
--- a/apps/manadeck/apps/web/src/routes/(auth)/register/+page.svelte
+++ b/apps/manadeck/apps/web/src/routes/(auth)/register/+page.svelte
@@ -1,9 +1,15 @@
+
+ {translations.title} | ManaDeck
+
+
{#snippet appSlider()}
diff --git a/apps/nutriphi/apps/web/src/routes/(auth)/forgot-password/+page.svelte b/apps/nutriphi/apps/web/src/routes/(auth)/forgot-password/+page.svelte
index 37e2ac48b..08ce2703c 100644
--- a/apps/nutriphi/apps/web/src/routes/(auth)/forgot-password/+page.svelte
+++ b/apps/nutriphi/apps/web/src/routes/(auth)/forgot-password/+page.svelte
@@ -2,10 +2,13 @@
import { goto } from '$app/navigation';
import { ForgotPasswordPage } from '@manacore/shared-auth-ui';
import { getForgotPasswordTranslations } from '@manacore/shared-i18n';
+ import { locale } from 'svelte-i18n';
import { NutriPhiLogo } from '@manacore/shared-branding';
import { authStore } from '$lib/stores/auth.svelte';
+ import '$lib/i18n';
- const translations = $derived(getForgotPasswordTranslations('de'));
+ // Get translations based on current locale
+ const translations = $derived(getForgotPasswordTranslations($locale || 'de'));
async function handleForgotPassword(email: string) {
return authStore.resetPassword(email);
diff --git a/apps/nutriphi/apps/web/src/routes/(auth)/login/+page.svelte b/apps/nutriphi/apps/web/src/routes/(auth)/login/+page.svelte
index fa53589fc..6fe3d117e 100644
--- a/apps/nutriphi/apps/web/src/routes/(auth)/login/+page.svelte
+++ b/apps/nutriphi/apps/web/src/routes/(auth)/login/+page.svelte
@@ -4,8 +4,10 @@
import { browser } from '$app/environment';
import { LoginPage } from '@manacore/shared-auth-ui';
import { getLoginTranslations } from '@manacore/shared-i18n';
+ import { locale } from 'svelte-i18n';
import { NutriPhiLogo } from '@manacore/shared-branding';
import { authStore } from '$lib/stores/auth.svelte';
+ import '$lib/i18n';
// Get redirect URL from query params or sessionStorage
const redirectTo = $derived.by(() => {
@@ -23,8 +25,8 @@
return '/';
});
- // German translations (NutriPhi is German-focused)
- const translations = $derived(getLoginTranslations('de'));
+ // Get translations based on current locale
+ const translations = $derived(getLoginTranslations($locale || 'de'));
// Read verification status from query params (set after email verification)
const verified = $derived($page.url.searchParams.get('verified') === 'true');
diff --git a/apps/nutriphi/apps/web/src/routes/(auth)/register/+page.svelte b/apps/nutriphi/apps/web/src/routes/(auth)/register/+page.svelte
index 6e65bb07d..84c654b6e 100644
--- a/apps/nutriphi/apps/web/src/routes/(auth)/register/+page.svelte
+++ b/apps/nutriphi/apps/web/src/routes/(auth)/register/+page.svelte
@@ -3,8 +3,10 @@
import { browser } from '$app/environment';
import { RegisterPage } from '@manacore/shared-auth-ui';
import { getRegisterTranslations } from '@manacore/shared-i18n';
+ import { locale } from 'svelte-i18n';
import { NutriPhiLogo } from '@manacore/shared-branding';
import { authStore } from '$lib/stores/auth.svelte';
+ import '$lib/i18n';
// Get redirect URL from sessionStorage
const redirectTo = $derived.by(() => {
@@ -18,7 +20,8 @@
return '/';
});
- const translations = $derived(getRegisterTranslations('de'));
+ // Get translations based on current locale
+ const translations = $derived(getRegisterTranslations($locale || 'de'));
async function handleSignUp(email: string, password: string) {
return authStore.signUp(email, password);
diff --git a/apps/picture/apps/web/src/routes/auth/forgot-password/+page.svelte b/apps/picture/apps/web/src/routes/auth/forgot-password/+page.svelte
index ed3cf026c..8f43ec49e 100644
--- a/apps/picture/apps/web/src/routes/auth/forgot-password/+page.svelte
+++ b/apps/picture/apps/web/src/routes/auth/forgot-password/+page.svelte
@@ -1,12 +1,14 @@
- Passwort vergessen - Picture
+ {translations.titleForm} | Picture
import { goto } from '$app/navigation';
+ import { locale } from 'svelte-i18n';
import { RegisterPage } from '@manacore/shared-auth-ui';
import { getRegisterTranslations } from '@manacore/shared-i18n';
import PictureLogo from '$lib/components/branding/PictureLogo.svelte';
import { authStore } from '$lib/stores/auth.svelte';
+ import '$lib/i18n';
- // Default to German
- const translations = getRegisterTranslations('de');
+ // Get translations based on current locale
+ const translations = $derived(getRegisterTranslations($locale || 'de'));
async function handleSignUp(email: string, password: string) {
return authStore.signUp(email, password);
@@ -18,7 +20,7 @@
- Registrieren - Picture
+ {translations.title} | Picture
{
@@ -23,8 +25,8 @@
return '/dashboard';
});
- // German translations (Planta is German-focused)
- const translations = $derived(getLoginTranslations('de'));
+ // Get translations based on current locale
+ const translations = $derived(getLoginTranslations($locale || 'de'));
// Read verification status from query params (set after email verification)
const verified = $derived($page.url.searchParams.get('verified') === 'true');
diff --git a/apps/questions/apps/web/src/routes/(auth)/forgot-password/+page.svelte b/apps/questions/apps/web/src/routes/(auth)/forgot-password/+page.svelte
index 58d6e3a57..189c0a2e4 100644
--- a/apps/questions/apps/web/src/routes/(auth)/forgot-password/+page.svelte
+++ b/apps/questions/apps/web/src/routes/(auth)/forgot-password/+page.svelte
@@ -2,11 +2,13 @@
import { goto } from '$app/navigation';
import { ForgotPasswordPage } from '@manacore/shared-auth-ui';
import { getForgotPasswordTranslations } from '@manacore/shared-i18n';
+ import { locale } from 'svelte-i18n';
import { QuestionsLogo } from '@manacore/shared-branding';
import { authStore } from '$lib/stores/auth.svelte';
+ import '$lib/i18n';
- // Get translations (default to English)
- const translations = $derived(getForgotPasswordTranslations('en'));
+ // Get translations based on current locale
+ const translations = $derived(getForgotPasswordTranslations($locale || 'en'));
async function handleForgotPassword(email: string) {
return authStore.resetPassword(email);
diff --git a/apps/questions/apps/web/src/routes/(auth)/login/+page.svelte b/apps/questions/apps/web/src/routes/(auth)/login/+page.svelte
index 1bb3271bf..1fac51690 100644
--- a/apps/questions/apps/web/src/routes/(auth)/login/+page.svelte
+++ b/apps/questions/apps/web/src/routes/(auth)/login/+page.svelte
@@ -4,9 +4,11 @@
import { browser } from '$app/environment';
import { LoginPage } from '@manacore/shared-auth-ui';
import { getLoginTranslations } from '@manacore/shared-i18n';
+ import { locale } from 'svelte-i18n';
import { QuestionsLogo } from '@manacore/shared-branding';
import { authStore } from '$lib/stores/auth.svelte';
import { apiClient } from '$lib/api/client';
+ import '$lib/i18n';
// Get redirect URL from query params or sessionStorage
const redirectTo = $derived.by(() => {
@@ -24,8 +26,8 @@
return '/';
});
- // Get translations (default to English)
- const translations = $derived(getLoginTranslations('en'));
+ // Get translations based on current locale
+ const translations = $derived(getLoginTranslations($locale || 'en'));
// Read verification status from query params
const verified = $derived($page.url.searchParams.get('verified') === 'true');
diff --git a/apps/questions/apps/web/src/routes/(auth)/register/+page.svelte b/apps/questions/apps/web/src/routes/(auth)/register/+page.svelte
index a7b0d6ed4..5895b1e06 100644
--- a/apps/questions/apps/web/src/routes/(auth)/register/+page.svelte
+++ b/apps/questions/apps/web/src/routes/(auth)/register/+page.svelte
@@ -3,8 +3,10 @@
import { browser } from '$app/environment';
import { RegisterPage } from '@manacore/shared-auth-ui';
import { getRegisterTranslations } from '@manacore/shared-i18n';
+ import { locale } from 'svelte-i18n';
import { QuestionsLogo } from '@manacore/shared-branding';
import { authStore } from '$lib/stores/auth.svelte';
+ import '$lib/i18n';
// Get redirect URL from sessionStorage
const redirectTo = $derived.by(() => {
@@ -18,8 +20,8 @@
return '/';
});
- // Get translations (default to English)
- const translations = $derived(getRegisterTranslations('en'));
+ // Get translations based on current locale
+ const translations = $derived(getRegisterTranslations($locale || 'en'));
async function handleSignUp(email: string, password: string) {
return authStore.signUp(email, password);
diff --git a/apps/skilltree/apps/web/src/routes/(auth)/forgot-password/+page.svelte b/apps/skilltree/apps/web/src/routes/(auth)/forgot-password/+page.svelte
index 890659b5c..c7d31b6e2 100644
--- a/apps/skilltree/apps/web/src/routes/(auth)/forgot-password/+page.svelte
+++ b/apps/skilltree/apps/web/src/routes/(auth)/forgot-password/+page.svelte
@@ -2,11 +2,13 @@
import { goto } from '$app/navigation';
import { ForgotPasswordPage } from '@manacore/shared-auth-ui';
import { getForgotPasswordTranslations } from '@manacore/shared-i18n';
+ import { locale } from 'svelte-i18n';
import { SkillTreeLogo } from '@manacore/shared-branding';
import { authStore } from '$lib/stores/auth.svelte';
+ import '$lib/i18n';
- // Get translations (default to German for this app)
- const translations = $derived(getForgotPasswordTranslations('de'));
+ // Get translations based on current locale
+ const translations = $derived(getForgotPasswordTranslations($locale || 'de'));
async function handleForgotPassword(email: string) {
return authStore.resetPassword(email);
diff --git a/apps/skilltree/apps/web/src/routes/(auth)/login/+page.svelte b/apps/skilltree/apps/web/src/routes/(auth)/login/+page.svelte
index 40cf255fa..93eb56697 100644
--- a/apps/skilltree/apps/web/src/routes/(auth)/login/+page.svelte
+++ b/apps/skilltree/apps/web/src/routes/(auth)/login/+page.svelte
@@ -4,9 +4,11 @@
import { browser } from '$app/environment';
import { LoginPage } from '@manacore/shared-auth-ui';
import { getLoginTranslations } from '@manacore/shared-i18n';
+ import { locale } from 'svelte-i18n';
import { SkillTreeLogo } from '@manacore/shared-branding';
import { authStore } from '$lib/stores/auth.svelte';
import { apiClient } from '$lib/api/client';
+ import '$lib/i18n';
// Get redirect URL from query params or sessionStorage
const redirectTo = $derived.by(() => {
@@ -24,8 +26,8 @@
return '/';
});
- // Get translations (default to German for this app)
- const translations = $derived(getLoginTranslations('de'));
+ // Get translations based on current locale
+ const translations = $derived(getLoginTranslations($locale || 'de'));
// Read verification status from query params
const verified = $derived($page.url.searchParams.get('verified') === 'true');
diff --git a/apps/skilltree/apps/web/src/routes/(auth)/register/+page.svelte b/apps/skilltree/apps/web/src/routes/(auth)/register/+page.svelte
index c17e71aaf..f557745bf 100644
--- a/apps/skilltree/apps/web/src/routes/(auth)/register/+page.svelte
+++ b/apps/skilltree/apps/web/src/routes/(auth)/register/+page.svelte
@@ -3,8 +3,10 @@
import { browser } from '$app/environment';
import { RegisterPage } from '@manacore/shared-auth-ui';
import { getRegisterTranslations } from '@manacore/shared-i18n';
+ import { locale } from 'svelte-i18n';
import { SkillTreeLogo } from '@manacore/shared-branding';
import { authStore } from '$lib/stores/auth.svelte';
+ import '$lib/i18n';
// Get redirect URL from sessionStorage
const redirectTo = $derived.by(() => {
@@ -18,8 +20,8 @@
return '/';
});
- // Get translations (default to German for this app)
- const translations = $derived(getRegisterTranslations('de'));
+ // Get translations based on current locale
+ const translations = $derived(getRegisterTranslations($locale || 'de'));
async function handleSignUp(email: string, password: string) {
return authStore.signUp(email, password);