File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 474
474
"deleteUser" : {
475
475
"title" : " Delete User" ,
476
476
"desc" : " This action cannot be undone. This will permanently delete the user account and remove all associated data." ,
477
- "warn" : " Are you sure you want to delete"
477
+ "warn" : " Are you sure you want to delete <strong>{{username}}</strong>? "
478
478
},
479
479
"passwordSetting" : {
480
480
"updatePassword" : " Update Password for {{username}}" ,
Original file line number Diff line number Diff line change 1
- import { useTranslation } from "react-i18next" ;
1
+ import { Trans , useTranslation } from "react-i18next" ;
2
2
import { Button } from "../ui/button" ;
3
3
import {
4
4
Dialog ,
@@ -35,8 +35,14 @@ export default function DeleteUserDialog({
35
35
36
36
< div className = "my-4 rounded-md border border-destructive/20 bg-destructive/5 p-4 text-center text-sm" >
37
37
< p className = "font-medium text-destructive" >
38
- { t ( "users.dialog.deleteUser.warn" ) }
39
- < span className = "font-medium" > { username } </ span > ?
38
+ < Trans
39
+ i18nKey = "users.dialog.deleteUser.warn"
40
+ ns = "views/settings"
41
+ values = { { username } }
42
+ components = { {
43
+ strong : < span className = "font-medium" /> ,
44
+ } }
45
+ />
40
46
</ p >
41
47
</ div >
42
48
You can’t perform that action at this time.
0 commit comments