mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-04 13:47:37 +02:00
Move another username to i18n key (#17820)
Same as https://github.com/blakeblackshear/frigate/pull/17818 - this time in the delete user dialog
This commit is contained in:
parent
43a9641ae8
commit
6e79ec1624
@ -474,7 +474,7 @@
|
|||||||
"deleteUser": {
|
"deleteUser": {
|
||||||
"title": "Delete User",
|
"title": "Delete User",
|
||||||
"desc": "This action cannot be undone. This will permanently delete the user account and remove all associated data.",
|
"desc": "This action cannot be undone. This will permanently delete the user account and remove all associated data.",
|
||||||
"warn": "Are you sure you want to delete"
|
"warn": "Are you sure you want to delete <strong>{{username}}</strong>?"
|
||||||
},
|
},
|
||||||
"passwordSetting": {
|
"passwordSetting": {
|
||||||
"updatePassword": "Update Password for {{username}}",
|
"updatePassword": "Update Password for {{username}}",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { useTranslation } from "react-i18next";
|
import { Trans, useTranslation } from "react-i18next";
|
||||||
import { Button } from "../ui/button";
|
import { Button } from "../ui/button";
|
||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
@ -35,8 +35,14 @@ export default function DeleteUserDialog({
|
|||||||
|
|
||||||
<div className="my-4 rounded-md border border-destructive/20 bg-destructive/5 p-4 text-center text-sm">
|
<div className="my-4 rounded-md border border-destructive/20 bg-destructive/5 p-4 text-center text-sm">
|
||||||
<p className="font-medium text-destructive">
|
<p className="font-medium text-destructive">
|
||||||
{t("users.dialog.deleteUser.warn")}
|
<Trans
|
||||||
<span className="font-medium"> {username}</span>?
|
i18nKey="users.dialog.deleteUser.warn"
|
||||||
|
ns="views/settings"
|
||||||
|
values={{ username }}
|
||||||
|
components={{
|
||||||
|
strong: <span className="font-medium" />,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user