Skip to content

Commit c0768e6

Browse files
committed
fix: pass pluralization parameters
1 parent 90a1bf2 commit c0768e6

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

app/components/Settings/TranslationHelper.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ ${template}`
7171
<div class="flex items-center justify-between">
7272
<h4 class="text-xs text-fg-muted font-medium">
7373
{{
74-
$t('i18n.missing_keys', { count: numberFormatter.format(status.missingKeys.length) })
74+
$t(
75+
'i18n.missing_keys',
76+
{ count: numberFormatter.format(status.missingKeys.length) },
77+
status.missingKeys.length,
78+
)
7579
}}
7680
</h4>
7781
<button
@@ -95,7 +99,13 @@ ${template}`
9599
class="text-xs text-fg-muted hover:text-fg rounded focus-visible:outline-accent/70"
96100
@click="showAll = true"
97101
>
98-
{{ $t('i18n.show_more_keys', { count: numberFormatter.format(remainingCount) }) }}
102+
{{
103+
$t(
104+
'i18n.show_more_keys',
105+
{ count: numberFormatter.format(remainingCount) },
106+
remainingCount,
107+
)
108+
}}
99109
</button>
100110
</div>
101111

0 commit comments

Comments
 (0)