From 4de319bd314c295ea089e20895b8b9e1a9216d43 Mon Sep 17 00:00:00 2001 From: tschumpr Date: Mon, 2 Sep 2024 16:08:48 +0200 Subject: [PATCH] Add link to api documentation --- src/Geopilot.Frontend/public/locale/de/common.json | 5 +++-- src/Geopilot.Frontend/public/locale/en/common.json | 5 +++-- src/Geopilot.Frontend/public/locale/fr/common.json | 5 +++-- src/Geopilot.Frontend/public/locale/it/common.json | 5 +++-- src/Geopilot.Frontend/src/pages/footer/about.tsx | 12 +++++++++--- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/Geopilot.Frontend/public/locale/de/common.json b/src/Geopilot.Frontend/public/locale/de/common.json index 44819807..01357ea8 100644 --- a/src/Geopilot.Frontend/public/locale/de/common.json +++ b/src/Geopilot.Frontend/public/locale/de/common.json @@ -5,6 +5,8 @@ "addOrganisation": "Organisation hinzufügen", "administration": "Administration", "and": "und", + "api": "API", + "apiInformation": "Dieser geopilot verwendet die API-Version {{version}}. Weitere Informationen finden Sie in der Dokumentation.", "bugTracking": "Bugtracking", "cancel": "Abbrechen", "clickToUpload": "Zum Hochladen klicken", @@ -85,6 +87,5 @@ "usersLoadingError": "Beim Laden der Benutzer:innen ist ein Fehler aufgetreten: {{error}}", "validate": "Validieren", "validationIsRunning": "Die Datei wird gerade mit {{validators}} validiert...", - "version": "Version", - "versionInformation": "Versionsinformationen" + "version": "Version" } diff --git a/src/Geopilot.Frontend/public/locale/en/common.json b/src/Geopilot.Frontend/public/locale/en/common.json index 3cbe4719..27714f1f 100644 --- a/src/Geopilot.Frontend/public/locale/en/common.json +++ b/src/Geopilot.Frontend/public/locale/en/common.json @@ -5,6 +5,8 @@ "addOrganisation": "Add organisation", "administration": "Administration", "and": "and", + "api": "API", + "apiInformation": "This geopilot uses the API version {{version}}. Further information can be found in the documentation.", "bugTracking": "bug tracking", "cancel": "Cancel", "clickToUpload": "Click to upload", @@ -85,6 +87,5 @@ "usersLoadingError": "An error occurred while loading the users: {{error}}", "validate": "Validate", "validationIsRunning": "The file is currently being validated with {{validators}}...", - "version": "Version", - "versionInformation": "Version information" + "version": "Version" } diff --git a/src/Geopilot.Frontend/public/locale/fr/common.json b/src/Geopilot.Frontend/public/locale/fr/common.json index 761bde82..f9d9346c 100644 --- a/src/Geopilot.Frontend/public/locale/fr/common.json +++ b/src/Geopilot.Frontend/public/locale/fr/common.json @@ -5,6 +5,8 @@ "addOrganisation": "Ajouter une organisation", "administration": "Administration", "and": "et", + "api": "API", + "apiInformation": "Ce geopilot utilise la version {{version}} de l'API. Pour plus d'informations, consultez la documentation.", "bugTracking": "Suivi des bugs", "cancel": "Annuler", "clickToUpload": "Cliquer pour télécharger", @@ -85,6 +87,5 @@ "usersLoadingError": "Une erreur s'est produite lors du chargement des utilisateurs: {{error}}", "validate": "Valider", "validationIsRunning": "Le fichier est en cours de validation avec {{validators}}...", - "version": "Version", - "versionInformation": "Informations sur la version" + "version": "Version" } diff --git a/src/Geopilot.Frontend/public/locale/it/common.json b/src/Geopilot.Frontend/public/locale/it/common.json index 5f31ec1e..79344a0b 100644 --- a/src/Geopilot.Frontend/public/locale/it/common.json +++ b/src/Geopilot.Frontend/public/locale/it/common.json @@ -5,6 +5,8 @@ "addOrganisation": "Aggiungi organizzazione", "administration": "Amministrazione", "and": "e", + "api": "API", + "apiInformation": "Questo geopilota utilizza la versione dell'API {{version}}. Ulteriori informazioni sono disponibili nella documentazione.", "bugTracking": "Tracciamento bug", "cancel": "Annulla", "clickToUpload": "Clicca per caricare", @@ -85,6 +87,5 @@ "usersLoadingError": "Si è verificato un errore durante il caricamento degli utenti: {{error}}", "validate": "Validare", "validationIsRunning": "Il file è in corso di validazione con {{validators}}...", - "version": "Versione", - "versionInformation": "Informazioni sulla versione" + "version": "Versione" } diff --git a/src/Geopilot.Frontend/src/pages/footer/about.tsx b/src/Geopilot.Frontend/src/pages/footer/about.tsx index 3c776c45..f392400b 100644 --- a/src/Geopilot.Frontend/src/pages/footer/about.tsx +++ b/src/Geopilot.Frontend/src/pages/footer/about.tsx @@ -33,7 +33,7 @@ export const About = () => { const [licenseInfo, setLicenseInfo] = useState(); const [licenseInfoCustom, setLicenseInfoCustom] = useState(); const { fetchApi } = useApi(); - const { version, clientSettings, termsOfUse } = useAppSettings(); + const { version, termsOfUse } = useAppSettings(); const { hash } = useLocation(); useEffect(() => { @@ -62,10 +62,16 @@ export const About = () => { {info && } {termsOfUse && } - {t("versionInformation")} + {t("api")}

- geopilot {clientSettings?.application?.name}: {version} + , + }} + values={{ version }} + />

{t("development")} & {t("bugTracking")}