client: improve account deletion question

The message may be confusing when used by an adminstrator because it
said "your account".
This commit is contained in:
Johann150 2022-11-19 20:24:28 +01:00
parent 4183c429e6
commit d02a51525f
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
3 changed files with 4 additions and 4 deletions

View file

@ -879,7 +879,7 @@ ffVisibility: "Follows/Followers Visibility"
ffVisibilityDescription: "Allows you to configure who can see who you follow and who\
\ follows you."
continueThread: "View thread continuation"
deleteAccountConfirm: "This will irreversibly delete your account. Proceed?"
deleteAccountConfirm: "This will irreversibly delete the account {handle}. Proceed?"
incorrectPassword: "Incorrect password."
voteConfirm: "Confirm your vote for \"{choice}\"?"
hide: "Hide"

View file

@ -11,7 +11,7 @@
import FormInfo from '@/components/ui/info.vue';
import FormButton from '@/components/ui/button.vue';
import * as os from '@/os';
import { signout } from '@/account';
import { $i, signout } from '@/account';
import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata';
@ -19,7 +19,7 @@ async function deleteAccount() {
{
const { canceled } = await os.confirm({
type: 'warning',
text: i18n.ts.deleteAccountConfirm,
text: i18n.t('deleteAccountConfirm', { handle: '@' + $i.username }),
});
if (canceled) return;
}

View file

@ -239,7 +239,7 @@ async function deleteAllFiles() {
async function deleteAccount() {
const confirm = await os.confirm({
type: 'warning',
text: i18n.ts.deleteAccountConfirm,
text: i18n.t('deleteAccountConfirm', { handle: acct(user) }),
});
if (confirm.canceled) return;