add admin/user i18n

This commit is contained in:
Lokowitz
2025-05-06 06:49:47 +00:00
parent e38941adf1
commit 4dd9f4736d
4 changed files with 40 additions and 28 deletions

View File

@@ -6,6 +6,7 @@ import { AdminListUsersResponse } from "@server/routers/user/adminListUsers";
import UsersTable, { GlobalUserRow } from "./AdminUsersTable";
import { Alert, AlertDescription, AlertTitle } from "@app/components/ui/alert";
import { InfoIcon } from "lucide-react";
import { getTranslations } from 'next-intl/server';
type PageProps = {
params: Promise<{ orgId: string }>;
@@ -39,17 +40,19 @@ export default async function UsersPage(props: PageProps) {
};
});
const t = await getTranslations();
return (
<>
<SettingsSectionTitle
title="Manage All Users"
description="View and manage all users in the system"
title={t('userTitle')}
description={t('userDescription')}
/>
<Alert variant="neutral" className="mb-6">
<InfoIcon className="h-4 w-4" />
<AlertTitle className="font-semibold">About User Management</AlertTitle>
<AlertTitle className="font-semibold">{t('userAbount')}</AlertTitle>
<AlertDescription>
This table displays all root user objects in the system. Each user may belong to multiple organizations. Removing a user from an organization does not delete their root user object - they will remain in the system. To completely remove a user from the system, you must delete their root user object using the delete action in this table.
{t('userAbountDescription')}
</AlertDescription>
</Alert>
<UsersTable users={userRows} />