feat(web): html tags inside plural and select messages (#10696)

* feat(web): html tags inside plural and select messages

* add component docs
This commit is contained in:
Michel Heusschen 2024-07-01 18:54:13 +02:00 committed by GitHub
parent b54dd4e135
commit ac51cad075
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 121 additions and 19 deletions

View file

@ -4,6 +4,7 @@
import { showDeleteModal } from '$lib/stores/preferences.store';
import Checkbox from '$lib/components/elements/checkbox.svelte';
import { t } from 'svelte-i18n';
import FormatMessage from '$lib/components/i18n/format-message.svelte';
export let size: number;
@ -30,12 +31,9 @@
>
<svelte:fragment slot="prompt">
<p>
Are you sure you want to permanently delete
{#if size > 1}
these <b>{size}</b> assets? This will also remove them from their album(s).
{:else}
this asset? This will also remove it from its album(s).
{/if}
<FormatMessage key="permanently_delete_assets_prompt" values={{ count: size }} let:message>
<b>{message}</b>
</FormatMessage>
</p>
<p><b>{$t('cannot_undo_this_action')}</b></p>