- Sync scripts with ProxmoxVE repo
+ {t('syncDescription')}
diff --git a/src/app/_components/ViewToggle.tsx b/src/app/_components/ViewToggle.tsx
index b251d9f..3e39b27 100644
--- a/src/app/_components/ViewToggle.tsx
+++ b/src/app/_components/ViewToggle.tsx
@@ -3,6 +3,7 @@
import React from 'react';
import { Button } from './ui/button';
import { Grid3X3, List } from 'lucide-react';
+import { useTranslation } from '@/lib/i18n/useTranslation';
interface ViewToggleProps {
viewMode: 'card' | 'list';
@@ -10,6 +11,8 @@ interface ViewToggleProps {
}
export function ViewToggle({ viewMode, onViewModeChange }: ViewToggleProps) {
+ const { t } = useTranslation('viewToggle');
+
return (
@@ -24,7 +27,7 @@ export function ViewToggle({ viewMode, onViewModeChange }: ViewToggleProps) {
}`}
>
- Card View
+ {t('cardView')}
diff --git a/src/lib/i18n/messages/de.ts b/src/lib/i18n/messages/de.ts
index a6d5945..ec641f4 100644
--- a/src/lib/i18n/messages/de.ts
+++ b/src/lib/i18n/messages/de.ts
@@ -115,6 +115,27 @@ export const deMessages: NestedMessages = {
settingUp: 'Wird eingerichtet...',
},
},
+ helpButton: {
+ needHelp: 'Brauchen Sie Hilfe?',
+ openHelp: 'Hilfe öffnen',
+ help: 'Hilfe',
+ },
+ resyncButton: {
+ syncDescription: 'Skripte mit ProxmoxVE-Repo synchronisieren',
+ syncing: 'Synchronisiere...',
+ syncJsonFiles: 'JSON-Dateien synchronisieren',
+ helpTooltip: 'Hilfe zum Sync-Button',
+ lastSync: 'Letzte Synchronisierung: {time}',
+ messages: {
+ success: 'Skripte erfolgreich synchronisiert',
+ failed: 'Fehler beim Synchronisieren der Skripte',
+ error: 'Fehler: {message}',
+ },
+ },
+ viewToggle: {
+ cardView: 'Karten-Ansicht',
+ listView: 'Listen-Ansicht',
+ },
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 ca2edf3..fa2206e 100644
--- a/src/lib/i18n/messages/en.ts
+++ b/src/lib/i18n/messages/en.ts
@@ -349,4 +349,25 @@ export const enMessages: NestedMessages = {
settingUp: 'Setting Up...',
},
},
+ helpButton: {
+ needHelp: 'Need help?',
+ openHelp: 'Open Help',
+ help: 'Help',
+ },
+ resyncButton: {
+ syncDescription: 'Sync scripts with ProxmoxVE repo',
+ syncing: 'Syncing...',
+ syncJsonFiles: 'Sync Json Files',
+ helpTooltip: 'Help with Sync Button',
+ lastSync: 'Last sync: {time}',
+ messages: {
+ success: 'Scripts synced successfully',
+ failed: 'Failed to sync scripts',
+ error: 'Error: {message}',
+ },
+ },
+ viewToggle: {
+ cardView: 'Card View',
+ listView: 'List View',
+ },
};