Skip to content

Commit 392c73e

Browse files
committed
refactor: update provenance section with i18n keypath
1 parent 880b091 commit 392c73e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

app/components/PackageProvenanceSection.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ defineProps<{
77
</script>
88

99
<template>
10-
<section id="provenance" aria-labelledby="provenance-heading" class="scroll-mt-20">
10+
<section aria-labelledby="provenance-heading" class="scroll-mt-20">
1111
<h2 id="provenance-heading" class="group text-xs text-fg-subtle uppercase tracking-wider mb-3">
1212
<a
1313
href="#provenance"
@@ -27,13 +27,11 @@ defineProps<{
2727
class="i-solar-shield-check-outline w-4 h-4 shrink-0 text-emerald-500"
2828
aria-hidden="true"
2929
/>
30-
<span
31-
v-html="
32-
$t('package.provenance_section.built_and_signed_on', {
33-
provider: `<b>${details.providerLabel}</b>`,
34-
})
35-
"
36-
/>
30+
<i18n-t keypath="package.provenance_section.built_and_signed_on" tag="span">
31+
<template #provider>
32+
<strong>{{ details.providerLabel }}</strong>
33+
</template>
34+
</i18n-t>
3735
</p>
3836
<a
3937
v-if="details.buildSummaryUrl"

0 commit comments

Comments
 (0)