- Rewrite messages.ts to plain string key maps (remove MessageDescriptor) - Rewrite useMessages hook to expose t from useTranslations() directly - Rename formatMessage → t across 193 consumer files - Replace custom FormattedMessage component with next-intl t.rich() - Update 52 language files to use rich text tags (<b>, <a>) - Remove all direct imports from @/components/messages in favor of useMessages() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
507 B
TypeScript
17 lines
507 B
TypeScript
'use client';
|
|
import { Column } from '@umami/react-zen';
|
|
import { WebsitesDataTable } from '@/app/(main)/websites/WebsitesDataTable';
|
|
import { SectionHeader } from '@/components/common/SectionHeader';
|
|
import { useMessages } from '@/components/hooks';
|
|
|
|
export function WebsitesSettingsPage({ teamId }: { teamId: string }) {
|
|
const { t, labels } = useMessages();
|
|
|
|
return (
|
|
<Column gap>
|
|
<SectionHeader title={t(labels.websites)} />
|
|
<WebsitesDataTable teamId={teamId} />
|
|
</Column>
|
|
);
|
|
}
|