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", "tags": "Tags",
"publishers": "Publishers", "publishers": "Publishers",
"download_sources": "Download sources", "download_sources": "Download sources",
"result_count": "{{count}} results", "result_count": "{{resultCount}} results",
"filter_count": "{{count}} available", "filter_count": "{{filterCount}} available",
"clear_filters": "Clear {{count}} selected" "clear_filters": "Clear {{filterCount}} selected"
}, },
"game_details": { "game_details": {
"open_download_options": "Open download options", "open_download_options": "Open download options",

View File

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

View File

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

View File

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

View File

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

View File

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