fix: validate simulator dates and reconcile QA calculations reports and language
This commit is contained in:
@@ -56,12 +56,14 @@ export default function TwoFactorRecoveryCodes({
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle className="flex gap-3">
|
||||
<LockKeyhole className="size-4" aria-hidden="true" />
|
||||
2FA recovery codes
|
||||
<LockKeyhole className="size-4" aria-hidden="true" />{' '}
|
||||
Códigos de recuperação{' '}
|
||||
</CardTitle>
|
||||
<CardDescription>
|
||||
Recovery codes let you regain access if you lose your 2FA
|
||||
device. Store them in a secure password manager.
|
||||
{' '}
|
||||
Os códigos de recuperação permitem recuperar o acesso se
|
||||
perder o dispositivo autenticador. Guarde-os num gestor de
|
||||
palavras-passe seguro.{' '}
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
@@ -76,7 +78,8 @@ export default function TwoFactorRecoveryCodes({
|
||||
className="size-4"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
{codesAreVisible ? 'Hide' : 'View'} recovery codes
|
||||
{codesAreVisible ? 'Ocultar' : 'Ver'} códigos de
|
||||
recuperação{' '}
|
||||
</Button>
|
||||
|
||||
{canRegenerateCodes && (
|
||||
@@ -92,7 +95,7 @@ export default function TwoFactorRecoveryCodes({
|
||||
disabled={processing}
|
||||
aria-describedby="regenerate-warning"
|
||||
>
|
||||
<RefreshCw /> Regenerate codes
|
||||
<RefreshCw /> Gerar novos códigos{' '}
|
||||
</Button>
|
||||
)}
|
||||
</Form>
|
||||
@@ -112,7 +115,7 @@ export default function TwoFactorRecoveryCodes({
|
||||
ref={codesSectionRef}
|
||||
className="bg-muted grid gap-1 rounded-lg p-4 font-mono text-sm"
|
||||
role="list"
|
||||
aria-label="Recovery codes"
|
||||
aria-label="Códigos de recuperação"
|
||||
>
|
||||
{recoveryCodesList.length ? (
|
||||
recoveryCodesList.map((code, index) => (
|
||||
@@ -127,7 +130,7 @@ export default function TwoFactorRecoveryCodes({
|
||||
) : (
|
||||
<div
|
||||
className="space-y-2"
|
||||
aria-label="Loading recovery codes"
|
||||
aria-label="A carregar os códigos de recuperação"
|
||||
>
|
||||
{Array.from(
|
||||
{ length: 8 },
|
||||
@@ -145,13 +148,15 @@ export default function TwoFactorRecoveryCodes({
|
||||
|
||||
<div className="text-muted-foreground text-xs select-none">
|
||||
<p id="regenerate-warning">
|
||||
Each recovery code can be used once to
|
||||
access your account and will be removed
|
||||
after use. If you need more, click{' '}
|
||||
{' '}
|
||||
Cada código permite uma única entrada e
|
||||
deixa de ser válido após a utilização.
|
||||
Para obter novos códigos, seleccione{' '}
|
||||
<span className="font-bold">
|
||||
Regenerate codes
|
||||
{' '}
|
||||
Gerar novos códigos{' '}
|
||||
</span>{' '}
|
||||
above.
|
||||
acima.{' '}
|
||||
</p>
|
||||
</div>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user