Implemented project-wide localization plumbing and converted the visible UI/app messages to translation-ready strings.

This commit is contained in:
2026-05-18 00:16:37 +03:30
parent b49b59a056
commit c6606d9602
60 changed files with 1376 additions and 345 deletions

View File

@@ -15,9 +15,11 @@ import {
DialogTrigger,
} from '@/components/ui/dialog';
import { Label } from '@/components/ui/label';
import { useTranslation } from '@/lib/translations';
export default function DeleteUser() {
const passwordInput = useRef<HTMLInputElement>(null);
const { t } = useTranslation();
return (
<div className="space-y-6">
@@ -28,9 +30,11 @@ export default function DeleteUser() {
/>
<div className="space-y-4 rounded-lg border border-red-100 bg-red-50 p-4 dark:border-red-200/10 dark:bg-red-700/10">
<div className="relative space-y-0.5 text-red-600 dark:text-red-100">
<p className="font-medium">Warning</p>
<p className="font-medium">{t('Warning')}</p>
<p className="text-sm">
Please proceed with caution, this cannot be undone.
{t(
'Please proceed with caution, this cannot be undone.',
)}
</p>
</div>
@@ -45,13 +49,12 @@ export default function DeleteUser() {
</DialogTrigger>
<DialogContent>
<DialogTitle>
Are you sure you want to delete your account?
{t('Are you sure you want to delete your account?')}
</DialogTitle>
<DialogDescription>
Once your account is deleted, all of its resources
and data will also be permanently deleted. Please
enter your password to confirm you would like to
permanently delete your account.
{t(
'Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.',
)}
</DialogDescription>
<Form
@@ -77,7 +80,7 @@ export default function DeleteUser() {
id="password"
name="password"
ref={passwordInput}
placeholder="Password"
placeholder={t('Password')}
autoComplete="current-password"
/>