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
No known key found for this signature in database
6 changed files with 21 additions and 15 deletions

View File

@ -52,9 +52,9 @@
"tags": "Tags",
"publishers": "Publishers",
"download_sources": "Download sources",
"result_count": "{{count}} results",
"filter_count": "{{count}} available",
"clear_filters": "Clear {{count}} selected"
"result_count": "{{resultCount}} results",
"filter_count": "{{filterCount}} available",
"clear_filters": "Clear {{filterCount}} selected"
},
"game_details": {
"open_download_options": "Open download options",

View File

@ -52,9 +52,9 @@
"tags": "Marcadores",
"publishers": "Distribuidoras",
"download_sources": "Fuentes de descarga",
"result_count": "{{count}} resultados",
"filter_count": "{{count}} disponibles",
"clear_filters": "Limpiar {{count}} seleccionados"
"result_count": "{{resultCount}} resultados",
"filter_count": "{{filterCount}} disponibles",
"clear_filters": "Limpiar {{filterCount}} seleccionados"
},
"game_details": {
"open_download_options": "Ver opciones de descargas",

View File

@ -290,9 +290,9 @@
"tags": "Marcadores",
"publishers": "Distribuidoras",
"download_sources": "Fontes de download",
"result_count": "{{count}} resultados",
"filter_count": "{{count}} disponíveis",
"clear_filters": "Limpar {{count}} selecionados"
"result_count": "{{resultCount}} resultados",
"filter_count": "{{filterCount}} disponíveis",
"clear_filters": "Limpar {{filterCount}} selecionados"
},
"modal": {
"close": "Botão de fechar"

View File

@ -52,9 +52,9 @@
"tags": "Маркеры",
"publishers": "Издательства",
"download_sources": "Источники загрузки",
"result_count": "{{count}} результатов",
"filter_count": "{{count}} доступных",
"clear_filters": "Очистить {{count}} выбранных"
"result_count": "{{resultCount}} результатов",
"filter_count": "{{filterCount}} доступных",
"clear_filters": "Очистить {{filterCount}} выбранных"
},
"game_details": {
"open_download_options": "Открыть источники",

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>
)}