From 65551a1f797f9c0ba33b1400e9595573dcdbec30 Mon Sep 17 00:00:00 2001 From: Matteo Gheza Date: Mon, 23 Oct 2023 15:53:34 +0200 Subject: [PATCH] Translate alert page --- .../modal-alert/modal-alert.component.html | 22 +++++++++---------- frontend/src/app/app.component.html | 8 +++---- frontend/src/assets/i18n/en.json | 14 ++++++++++++ frontend/src/assets/i18n/it.json | 14 ++++++++++++ 4 files changed, 43 insertions(+), 15 deletions(-) diff --git a/frontend/src/app/_components/modal-alert/modal-alert.component.html b/frontend/src/app/_components/modal-alert/modal-alert.component.html index 6af7273..78a5160 100644 --- a/frontend/src/app/_components/modal-alert/modal-alert.component.html +++ b/frontend/src/app/_components/modal-alert/modal-alert.component.html @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/frontend/src/app/app.component.html b/frontend/src/app/app.component.html index 67f88b6..3283704 100644 --- a/frontend/src/app/app.component.html +++ b/frontend/src/app/app.component.html @@ -13,15 +13,15 @@ - Attenzione! Allertamento in corso.
+ {{ 'warning'|translate|titlecase }}! {{ 'alert.warning_body'|translate }}
- Emergenza attuale: {{ alerts[0]["created_at"] | date:'dd/MM/YYYY, HH:mm:ss' }} (premere per ulteriori informazioni) + {{ 'alert.current_alert'|translate }}: {{ alerts[0]["created_at"] | date:'dd/MM/YYYY, HH:mm:ss' }} ({{ 'press_for_more_info'|translate }}) - Emergenze attuali: + {{ 'alert.current_alerts'|translate }}: diff --git a/frontend/src/assets/i18n/en.json b/frontend/src/assets/i18n/en.json index f643c11..d3af015 100644 --- a/frontend/src/assets/i18n/en.json +++ b/frontend/src/assets/i18n/en.json @@ -32,6 +32,18 @@ "telegram_bot_token_request_failed": "Telegram bot token could not be generated. Please try again" }, "alert": { + "warning_body": "Alert in progress.", + "current_alert": "Current alert", + "current_alerts": "Current alerts", + "state": "Alert state", + "closed": "Alert closed", + "response_status": "Response status", + "no_response": "No response", + "waiting_for_response": "Waiting for response", + "response_yes": "Available", + "response_no": "Not available", + "details": "Alert details", + "delete": "Remove current alert", "delete_confirm_title": "Are you sure you want to remove this alert?", "delete_confirm_text": "This action cannot be undone.", "deleted_successfully": "Alert removed successfully", @@ -87,6 +99,8 @@ "training_load_failed": "Errore durante il caricamento dell'intervento. Riprovare più tardi", "users_load_failed": "Errore durante il caricamento degli utenti. Riprovare più tardi" }, + "warning": "warning", + "press_for_more_info": "press here for more info", "update_availability_schedule": "Update availability schedule", "save_changes": "Save changes", "close": "Close", diff --git a/frontend/src/assets/i18n/it.json b/frontend/src/assets/i18n/it.json index 1b683c6..5eaf90a 100644 --- a/frontend/src/assets/i18n/it.json +++ b/frontend/src/assets/i18n/it.json @@ -32,6 +32,18 @@ "telegram_bot_token_request_failed": "Errore durante la richiesta del token del bot Telegram. Riprova più tardi" }, "alert": { + "warning_body": "Allertamento in corso.", + "current_alert": "Emergenza in corso", + "current_alerts": "Emergenze in corso", + "state": "Stato dell'allerta", + "closed": "Allerta rientrata", + "response_status": "Stato della risposta", + "no_response": "Nessuna risposta", + "waiting_for_response": "In attesa di risposta", + "response_yes": "Presente", + "response_no": "Non presente", + "details": "Dettagli dell'allerta", + "delete": "Ritira allerta", "delete_confirm_title": "Sei sicuro di voler rimuovere questa allerta?", "delete_confirm_text": "I vigili saranno avvisati della rimozione.", "deleted_successfully": "Allerta rimossa con successo", @@ -87,6 +99,8 @@ "training_load_failed": "Errore durante il caricamento dell'intervento. Riprovare più tardi", "users_load_failed": "Errore durante il caricamento degli utenti. Riprovare più tardi" }, + "warning": "attenzione", + "press_for_more_info": "premi qui per informazioni", "update_availability_schedule": "Aggiorna programmazione disponibilità", "save_changes": "Salva modifiche", "close": "Chiudi",