From 24c0dca9e2fec125271569b15321ac6a16581800 Mon Sep 17 00:00:00 2001 From: lamacchinadesiderante Date: Sun, 8 Jan 2023 20:06:17 +0100 Subject: [PATCH 1/2] fix language issue --- frontend/src/components/Search.tsx | 4 ++-- frontend/src/i18n.json | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/Search.tsx b/frontend/src/components/Search.tsx index 97813a9..0e6f627 100644 --- a/frontend/src/components/Search.tsx +++ b/frontend/src/components/Search.tsx @@ -104,7 +104,7 @@ const Search: React.FC = ({ setBooks }) => { {!showLanguageDropdown && (} - placeholder={t('book.language')} + placeholder={t('input.select_language')} value={language} onChange={handleLanguageChange} onClear={handleLanguageReset} @@ -112,7 +112,7 @@ const Search: React.FC = ({ setBooks }) => { {showLanguageDropdown && (} - placeholder={t('book.language')} + placeholder={t('input.select_language')} value={language} onChange={handleLanguageChange} />)} diff --git a/frontend/src/i18n.json b/frontend/src/i18n.json index 6309813..b5ced9f 100644 --- a/frontend/src/i18n.json +++ b/frontend/src/i18n.json @@ -8,7 +8,8 @@ "toggle_language": "Toggle Language" }, "input": { - "clear": "Clear" + "clear": "Clear", + "select_language": "(Select language...)" }, "book": { "id": "zlib/libgen id", @@ -60,7 +61,7 @@ "input": "Input..." }, "disclaimer": { - "nolink_warning": "WARNING: This platform does not host any kind of link to copyrighted material. It just displays CID related to IPFS resources" + "nolink_warning": "WARNING: This platform does not host any kind of link to copyrighted material. It just displays CID related to IPFS resources." } } }, @@ -173,7 +174,8 @@ "toggle_language": "Lingua" }, "input": { - "clear": "pulisci" + "clear": "pulisci", + "select_language": "(Seleziona lingua...)" }, "book": { "id": "ID zlib/libgen", -- 2.40.1 From 7cfaa2e5377a6f596474bff187bc36f68eb2e03f Mon Sep 17 00:00:00 2001 From: lamacchinadesiderante Date: Sun, 8 Jan 2023 22:04:39 +0100 Subject: [PATCH 2/2] fix language label issue --- frontend/package.json | 2 +- frontend/src/i18n.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 33f8fad..8ee1644 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "frontend", "private": true, - "version": "0.4.0", + "version": "0.4.4", "type": "module", "repository": "https://git.lamacchinadesiderante.org/lamacchinadesiderante/millelibri", "scripts": { diff --git a/frontend/src/i18n.json b/frontend/src/i18n.json index b5ced9f..9ea1ccd 100644 --- a/frontend/src/i18n.json +++ b/frontend/src/i18n.json @@ -184,7 +184,7 @@ "publisher": "Editore", "extension": "Estensione", "filesize": "Dimensione file", - "language": "(Seleziona lingua...)", + "language": "Lingua", "year": "Anno", "pages": "Pagina", "isbn": "ISBN", -- 2.40.1