Skip to content

Commit e111cab

Browse files
committed
feat(i18n): update field count display in contact form to use interpolation for localization
1 parent cbc3dbc commit e111cab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/contact.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const L = (path: string) => localizePath(path, locale)
106106
<span class="w-2 h-2 rounded-full bg-cyan pulse-dot"></span>
107107
<span class="text-[11px] font-mono uppercase tracking-[.2em] text-ink-100">{c.form.badge}</span>
108108
</div>
109-
<span class="text-[11px] font-mono text-ink-300" id="field-count" data-template={c.form.fieldCount}>{c.form.fieldCount.replace('{n}', '0').replace('{total}', '3')}</span>
109+
<span class="text-[11px] font-mono text-ink-300" id="field-count">{interpolate(c.form.fieldCount, { n: 0, total: 3 })}</span>
110110
</div>
111111

112112
<form id="contact-form" class="grid md:grid-cols-2 gap-4">

0 commit comments

Comments
 (0)