fix: UX improvements for German association users
- fix(member-detail): display gender in German (Männlich/Weiblich/Divers) instead of raw English enum values (male/female/diverse) - fix(member-detail): display country names in German (Österreich, Deutschland) instead of raw ISO codes (AT, DE) - fix(member-statistics): total member count was always 0 getStatistics() returns per-status counts without a total key; now computes total by summing all status counts - fix(i18n): add 56 breadcrumb segment translations for DE and EN Breadcrumbs were showing English path segments (Courses, Calendar, Registrations) because translation keys for URL path segments were missing. Added all segment-level route translations so breadcrumbs now display in German throughout the app.
This commit is contained in:
@@ -35,7 +35,11 @@ export default async function MemberStatisticsPage({ params }: PageProps) {
|
||||
if (!acct) return <AccountNotFound />;
|
||||
|
||||
const { query } = createMemberServices(client);
|
||||
const stats = await query.getStatistics(acct.id);
|
||||
const statsRaw = await query.getStatistics(acct.id);
|
||||
|
||||
// Compute total from individual status counts
|
||||
const total = Object.values(statsRaw).reduce((a, b) => a + b, 0);
|
||||
const stats = { ...statsRaw, total };
|
||||
|
||||
const statusChartData = [
|
||||
{ name: t('status.active'), value: stats.active ?? 0 },
|
||||
|
||||
Reference in New Issue
Block a user