feat(frontend): link custom preferences in profile editor

This commit is contained in:
sam 2025-02-24 17:13:46 +01:00
parent c8e4078b35
commit 92bf933c10
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
7 changed files with 29 additions and 2 deletions

View file

@ -12,6 +12,8 @@
<svelte:element this={headerElem ?? "h4"}>
{#if error.code === ErrorCode.BadRequest}
{$t("error.bad-request-header")}
{:else if error.status === 404}
{$t("error.not-found-header")}
{:else}
{$t("error.generic-header")}
{/if}

View file

@ -0,0 +1,8 @@
<script lang="ts">
import { t } from "$lib/i18n";
</script>
<div class="alert alert-secondary">
{$t("editor.custom-preference-notice")}
<a href="/settings/pref" class="alert-link">{$t("editor.custom-preference-notice-link")}</a>
</div>

View file

@ -121,7 +121,8 @@
"500-description": "Something went wrong on the server. Please try again later.",
"unknown-status-description": "Something went wrong, but we're not sure what. Please try again.",
"error-id": "If you report this error to the developers, please give them this ID:",
"page-not-found": "No page exists at this URL."
"page-not-found": "No page exists at this URL.",
"not-found-header": "That page could not be found"
},
"settings": {
"general-information-tab": "General information",
@ -288,7 +289,9 @@
"custom-preference-size-small": "Small",
"custom-preference-size": "Text size",
"custom-preference-muted": "Show as muted text",
"custom-preference-favourite": "Treat like favourite"
"custom-preference-favourite": "Treat like favourite",
"custom-preference-notice": "Want to edit your custom preferences?",
"custom-preference-notice-link": "Go to settings"
},
"cancel": "Cancel",
"report": {