feat(i18n): convert TagChip to t() (Batch F)

This commit is contained in:
iamdoubz committed 2026-07-12 12:53:25 -05:00
1 parent ae13944563
commit 84ab88b565
1 file changed
+8 -2
+8 -2
View File
@@ -4,6 +4,7 @@
// list it's rendered in (not a global delete — the caller decides what
// "remove" means).
import { X } from "@lucide/svelte";
import { t } from "../i18n/index.svelte";
interface Props {
tag: string;
@@ -20,12 +21,17 @@
class="label"
onclick={onClick}
disabled={!onClick}
title={onClick ? `Filter meetings tagged "${tag}"` : undefined}
title={onClick ? t("tagchip.filter", { tag }) : undefined}
>
{tag}
</button>
{#if removable}
<button type="button" class="remove" onclick={onRemove} aria-label={`Remove tag ${tag}`}>
<button
type="button"
class="remove"
onclick={onRemove}
aria-label={t("tagchip.remove", { tag })}
>
<X size={10} aria-hidden="true" />
</button>
{/if}