setPassword(e.target.value)}
disabled={isLoading}
@@ -143,14 +145,14 @@ export function SetupModal({ isOpen, onComplete }: SetupModalProps) {
setConfirmPassword(e.target.value)}
disabled={isLoading}
@@ -164,11 +166,11 @@ export function SetupModal({ isOpen, onComplete }: SetupModalProps) {
-
Enable Authentication
+
{t('enableAuth.title')}
{enableAuth
- ? 'Authentication will be required on every page load'
- : 'Authentication will be optional (can be enabled later in settings)'
+ ? t('enableAuth.descriptionEnabled')
+ : t('enableAuth.descriptionDisabled')
}
@@ -176,7 +178,7 @@ export function SetupModal({ isOpen, onComplete }: SetupModalProps) {
checked={enableAuth}
onCheckedChange={setEnableAuth}
disabled={isLoading}
- label="Enable authentication"
+ label={t('enableAuth.label')}
/>
@@ -196,7 +198,7 @@ export function SetupModal({ isOpen, onComplete }: SetupModalProps) {
}
className="w-full"
>
- {isLoading ? 'Setting Up...' : 'Complete Setup'}
+ {isLoading ? t('actions.settingUp') : t('actions.completeSetup')}
diff --git a/src/lib/i18n/messages/de.ts b/src/lib/i18n/messages/de.ts
index f8c89ff..a6d5945 100644
--- a/src/lib/i18n/messages/de.ts
+++ b/src/lib/i18n/messages/de.ts
@@ -64,6 +64,57 @@ export const deMessages: NestedMessages = {
serverBackOnline: 'Server ist wieder online! Seite wird neu geladen...',
},
},
+ loadingModal: {
+ processing: 'Verarbeite',
+ pleaseWait: 'Bitte warten...',
+ },
+ authModal: {
+ title: 'Authentifizierung erforderlich',
+ description: 'Bitte geben Sie Ihre Anmeldedaten ein, um auf die Anwendung zuzugreifen.',
+ username: {
+ label: 'Benutzername',
+ placeholder: 'Benutzername eingeben',
+ },
+ password: {
+ label: 'Passwort',
+ placeholder: 'Passwort eingeben',
+ },
+ error: 'Ungültiger Benutzername oder Passwort',
+ actions: {
+ signIn: 'Anmelden',
+ signingIn: 'Anmeldung läuft...',
+ },
+ },
+ setupModal: {
+ title: 'Authentifizierung einrichten',
+ description: 'Richten Sie die Authentifizierung ein, um Ihre Anwendung zu sichern. Diese wird für zukünftige Zugriffe erforderlich sein.',
+ username: {
+ label: 'Benutzername',
+ placeholder: 'Wählen Sie einen Benutzernamen',
+ },
+ password: {
+ label: 'Passwort',
+ placeholder: 'Wählen Sie ein Passwort',
+ },
+ confirmPassword: {
+ label: 'Passwort bestätigen',
+ placeholder: 'Bestätigen Sie Ihr Passwort',
+ },
+ enableAuth: {
+ title: 'Authentifizierung aktivieren',
+ descriptionEnabled: 'Authentifizierung wird bei jedem Seitenladevorgang erforderlich sein',
+ descriptionDisabled: 'Authentifizierung wird optional sein (kann später in den Einstellungen aktiviert werden)',
+ label: 'Authentifizierung aktivieren',
+ },
+ errors: {
+ passwordMismatch: 'Passwörter stimmen nicht überein',
+ setupFailed: 'Fehler beim Einrichten der Authentifizierung',
+ },
+ actions: {
+ completeSetup: 'Einrichtung abschließen',
+ settingUp: 'Wird eingerichtet...',
+ },
+ },
layout: {
title: 'PVE Skriptverwaltung',
tagline: 'Verwalte und starte lokale Proxmox-Hilfsskripte mit Live-Ausgabe',
diff --git a/src/lib/i18n/messages/en.ts b/src/lib/i18n/messages/en.ts
index 0415632..ca2edf3 100644
--- a/src/lib/i18n/messages/en.ts
+++ b/src/lib/i18n/messages/en.ts
@@ -298,4 +298,55 @@ export const enMessages: NestedMessages = {
passwordMismatch: 'Passwords do not match',
},
},
+ loadingModal: {
+ processing: 'Processing',
+ pleaseWait: 'Please wait...',
+ },
+ authModal: {
+ title: 'Authentication Required',
+ description: 'Please enter your credentials to access the application.',
+ username: {
+ label: 'Username',
+ placeholder: 'Enter your username',
+ },
+ password: {
+ label: 'Password',
+ placeholder: 'Enter your password',
+ },
+ error: 'Invalid username or password',
+ actions: {
+ signIn: 'Sign In',
+ signingIn: 'Signing In...',
+ },
+ },
+ setupModal: {
+ title: 'Setup Authentication',
+ description: 'Set up authentication to secure your application. This will be required for future access.',
+ username: {
+ label: 'Username',
+ placeholder: 'Choose a username',
+ },
+ password: {
+ label: 'Password',
+ placeholder: 'Choose a password',
+ },
+ confirmPassword: {
+ label: 'Confirm Password',
+ placeholder: 'Confirm your password',
+ },
+ enableAuth: {
+ title: 'Enable Authentication',
+ descriptionEnabled: 'Authentication will be required on every page load',
+ descriptionDisabled: 'Authentication will be optional (can be enabled later in settings)',
+ label: 'Enable authentication',
+ },
+ errors: {
+ passwordMismatch: 'Passwords do not match',
+ setupFailed: 'Failed to setup authentication',
+ },
+ actions: {
+ completeSetup: 'Complete Setup',
+ settingUp: 'Setting Up...',
+ },
+ },
};