feat(quick-260917-gyd): Widgets-Seite uebersetzt, CHANGELOG ergaenzt
- settings/dashboard/page.tsx: Lade-/Leerhinweis ueber i18n (common.loading, settings.widgets.empty) statt hartkodiertem Englisch - de.json/en.json: neuer Schluessel settings.widgets.empty (additiv) - CHANGELOG.md: drei Stichpunkte unter Behoben (Ruecksprung nach Anmeldung, Abmeldung bei toter Sitzung, Uebersetzung Widgets-Seite) Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import { fetchWidgets } from '@/lib/dashboard-api';
|
||||
*/
|
||||
export default function WidgetSettingsPage() {
|
||||
const t = useTranslations('settings');
|
||||
const tCommon = useTranslations('common');
|
||||
const [widgets, setWidgets] = useState<
|
||||
Array<{ id: string; widgetType: string; config: Record<string, unknown> }>
|
||||
>([]);
|
||||
@@ -32,10 +33,10 @@ export default function WidgetSettingsPage() {
|
||||
</h1>
|
||||
|
||||
{isLoading ? (
|
||||
<p className="text-sm text-muted-foreground">Loading...</p>
|
||||
<p className="text-sm text-muted-foreground">{tCommon('loading')}</p>
|
||||
) : widgets.length === 0 ? (
|
||||
<p className="text-sm text-muted-foreground">
|
||||
No widgets placed on dashboard yet.
|
||||
{t('widgets.empty')}
|
||||
</p>
|
||||
) : (
|
||||
<WidgetSettingsPanel
|
||||
|
||||
Reference in New Issue
Block a user