fix: complete Chinese frontend localization

This commit is contained in:
2026-08-23 15:05:45 +08:00
parent 5a8a478386
commit 61123f708d
18 changed files with 721 additions and 163 deletions

View File

@@ -14,6 +14,7 @@ export function DeleteBoardConfirmation({
}) {
const router = useRouter();
const { closeModal } = useModal();
const boardTypeLabel = isTemplate ? t`template` : t`board`;
const deleteBoard = api.board.delete.useMutation({
onSuccess: () => {
@@ -33,7 +34,7 @@ export function DeleteBoardConfirmation({
<div className="p-5">
<div className="flex w-full flex-col justify-between pb-4">
<h2 className="text-md pb-4 font-medium text-neutral-900 dark:text-dark-1000">
{t`Are you sure you want to delete this ${isTemplate ? "template" : "board"}?`}
{t`Are you sure you want to delete this ${boardTypeLabel}?`}
</h2>
<p className="text-sm font-medium text-light-900 dark:text-dark-900">
{t`This action can't be undone.`}