mirror of
https://github.com/handsomezhuzhu/2fa-tool.git
synced 2026-04-18 22:32:53 +00:00
feat: replace hardcoded English text with i18n translations
Update page.tsx password dialog with i18n translations for multilingual support. Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
This commit is contained in:
10
app/page.tsx
10
app/page.tsx
@@ -1196,14 +1196,14 @@ export default function TwoFactorAuth() {
|
||||
<Dialog open={showExportPassword} onOpenChange={setShowExportPassword}>
|
||||
<DialogContent>
|
||||
<DialogHeader>
|
||||
<DialogTitle>Set Export Password</DialogTitle>
|
||||
<DialogTitle>{t.setExportPassword}</DialogTitle>
|
||||
</DialogHeader>
|
||||
<div className="space-y-4 py-4">
|
||||
<div className="space-y-2">
|
||||
<Label>Password</Label>
|
||||
<Input
|
||||
type="password"
|
||||
placeholder="Enter a password to protect your backup"
|
||||
placeholder={t.passwordPlaceholder}
|
||||
value={exportPassword}
|
||||
onChange={(e) => setExportPassword(e.target.value)}
|
||||
/>
|
||||
@@ -1236,11 +1236,11 @@ export default function TwoFactorAuth() {
|
||||
}}>
|
||||
<DialogContent>
|
||||
<DialogHeader>
|
||||
<DialogTitle>Import Backup</DialogTitle>
|
||||
<DialogTitle>{t.importBackup}</DialogTitle>
|
||||
</DialogHeader>
|
||||
<div className="space-y-4 py-4">
|
||||
<div className="space-y-2">
|
||||
<Label>Select File</Label>
|
||||
<Label>{t.selectFile}</Label>
|
||||
<Input
|
||||
type="file"
|
||||
accept=".enc"
|
||||
@@ -1253,7 +1253,7 @@ export default function TwoFactorAuth() {
|
||||
<Label>Password</Label>
|
||||
<Input
|
||||
type="password"
|
||||
placeholder="Enter the password for this backup"
|
||||
placeholder={t.passwordInput}
|
||||
value={importPassword}
|
||||
onChange={(e) => setImportPassword(e.target.value)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user