immich/web/src/lib/components/i18n/format-bold-message.svelte

15 lines
441 B
Svelte
Raw Normal View History

<script lang="ts">
import FormatMessage from '$lib/components/i18n/format-message.svelte';
import type { InterpolationValues } from '$lib/components/i18n/format-message.svelte';
import type { Translations } from 'svelte-i18n';
export let key: Translations;
export let values: InterpolationValues = {};
</script>
<FormatMessage {key} {values} let:message let:tag>
{#if tag === 'b'}
<b>{message}</b>
{/if}
</FormatMessage>