feat: adding translation for catalogue

This commit is contained in:
Chubby Granny Chaser
2024-12-23 21:54:01 +00:00
parent d072a14aa3
commit 7d277e0133
6 changed files with 21 additions and 15 deletions

View File

@@ -302,7 +302,9 @@ export default function Catalogue() {
}}
>
<span style={{ fontSize: 12 }}>
{t("result_count", { count: formatNumber(itemsCount) })}
{t("result_count", {
resultCount: formatNumber(itemsCount),
})}
</span>
<Pagination

View File

@@ -86,11 +86,15 @@ export function FilterSection({
}}
onClick={onClear}
>
{t("clear_filters", { count: formatNumber(selectedItemsCount) })}
{t("clear_filters", {
filterCount: formatNumber(selectedItemsCount),
})}
</button>
) : (
<span style={{ fontSize: 12, marginBottom: 12, display: "block" }}>
{t("filter_count", { count: formatNumber(items.length) })}
{t("filter_count", {
filterCount: formatNumber(items.length),
})}
</span>
)}