feat: add localisation to delete modal

This commit is contained in:
mrjvs 2025-10-04 22:04:46 +02:00
parent d34bdabd14
commit 59a4b1344e
2 changed files with 14 additions and 5 deletions

View File

@ -381,6 +381,13 @@
"no_signins_notice": "Sign in history not currently tracked. Check back again later!",
"no_newsletter_notice": "Newsletter not currently available. Check back again later",
"no_edit_from_dashboard": "Editing PNID settings from user dashboard is currently unavailable. Please update user settings from your linked game console"
},
"delete": {
"button": "Delete Account",
"modalTitle": "Delete PNID",
"modalDescription": "Are you sure you want to delete your PNID? Your data across services such as the forums, Miiverse, etc. will all be removed. Your Stripe data and subscription will also be automatically deleted.",
"modalCaution": "This action cannot be undone.",
"modalConfirm": "Yes, delete"
}
},
"accountLevel": [

View File

@ -29,7 +29,7 @@
<p class="caption">{{ locale.account.settings.upgrade }}</p>
</a>
<a class="button secondary" id="account-delete">
<p class="caption">Delete Account</p> <!-- TODO - Add this to weblate, hard-coding for now to push through -->
<p class="caption">{{ locale.account.settings.delete.button }}</p>
</a>
</div>
</div>
@ -201,13 +201,15 @@
</div>
</div>
<!-- TODO - Add this to weblate, hard-coding for now to push through -->
<div class="modal-wrapper hidden" id="confirm-delete">
<div class="modal">
<h1 class="title dot">Delete PNID</h1>
<p class="modal-caption">Are you sure you want to delete your PNID? Your data across services such as the forums, Miiverse, etc. will all be removed. Your Stripe data and subscription will also be automatically deleted.<br>This action cannot be undone</p>
<h1 class="title dot">{{ locale.account.settings.delete.modalTitle }}</h1>
<p class="modal-caption">
{{ locale.account.settings.delete.modalDescription }}<br><br>
{{ locale.account.settings.delete.modalCaution}}
</p>
<div class="modal-button-wrapper">
<button class="button primary confirm" id="confirmDeleteConfirmButton">Yes, delete</button>
<button class="button primary confirm" id="confirmDeleteConfirmButton">{{ locale.account.settings.delete.modalConfirm }}</button>
<button class="button primary" id="confirmDeleteCloseButton">{{ locale.modals.close }}</button>
</div>
</div>