diff --git a/src/apps/officer-web/Screens/Dashboard/Settings/UserManagement/CreateUserForm.tsx b/src/apps/officer-web/Screens/Dashboard/Settings/UserManagement/CreateUserForm.tsx index 0d503a82..d823baa1 100644 --- a/src/apps/officer-web/Screens/Dashboard/Settings/UserManagement/CreateUserForm.tsx +++ b/src/apps/officer-web/Screens/Dashboard/Settings/UserManagement/CreateUserForm.tsx @@ -9,6 +9,7 @@ import { Label } from '@/components/ui/label'; import { Textarea } from '@/components/ui/textarea'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; import { copyToClipboard } from 'helpers/clipboard'; +import { useTranslation } from '@/lib/i18n'; // The owner creating an account. Until this existed the only way to add one was an INSERT in Postgres. // @@ -65,6 +66,7 @@ type CreatedAccount = { }; export const CreateUserForm = ({ roles, usersKey }: CreateUserFormProps) => { + const { t, tUi } = useTranslation(); const client = useClient(); const queryClient = useQueryClient(); const [open, setOpen] = useState(false); @@ -118,16 +120,19 @@ export const CreateUserForm = ({ roles, usersKey }: CreateUserFormProps) => {

{created.email} created

-

- Copy what you need before closing — none of it can be shown again. -

+

{t('settings.users.copyBeforeClosing')}

- +
-
@@ -139,14 +144,14 @@ export const CreateUserForm = ({ roles, usersKey }: CreateUserFormProps) => { {created.osUser && (
- +
)} {created.osSshPublicKey && (
- +