From 867bb730cd600492821fc98f3a8be32b10dc74ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Chirico=20Indreb=C3=B8?= Date: Thu, 25 Jan 2024 12:37:41 +0100 Subject: [PATCH] Add missing translations and format error message --- .../Pages/InspectionPage/ScheduleMissionDialogs.tsx | 2 +- frontend/src/language/en.json | 5 ++++- frontend/src/language/no.json | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Pages/InspectionPage/ScheduleMissionDialogs.tsx b/frontend/src/components/Pages/InspectionPage/ScheduleMissionDialogs.tsx index 73b9b0f4c..bd6795104 100644 --- a/frontend/src/components/Pages/InspectionPage/ScheduleMissionDialogs.tsx +++ b/frontend/src/components/Pages/InspectionPage/ScheduleMissionDialogs.tsx @@ -87,7 +87,7 @@ export const ScheduleMissionDialog = (props: IProps): JSX.Element => { BackendAPICaller.scheduleMissionDefinition(mission.id, selectedRobot.id).catch(() => { setAlert( AlertType.RequestFail, - + ) setLoadingMissionSet((currentSet: Set) => { const updatedSet: Set = new Set(currentSet) diff --git a/frontend/src/language/en.json b/frontend/src/language/en.json index ff65893f3..9a1145a45 100644 --- a/frontend/src/language/en.json +++ b/frontend/src/language/en.json @@ -221,5 +221,8 @@ "The current pressure level is": "The current pressure level is", "which is within the suggested range": "which is within the suggested range", "Warning": "Warning", - "which is NOT within the suggested range": "which is NOT within the suggested range" + "which is NOT within the suggested range": "which is NOT within the suggested range", + "The current battery level is": "The current battery level is", + "which is above the suggested minimum": "which is above the suggested minimum", + "Failed to schedule mission ": "Failed to schedule mission " } diff --git a/frontend/src/language/no.json b/frontend/src/language/no.json index c562c120e..7d1ce6e98 100644 --- a/frontend/src/language/no.json +++ b/frontend/src/language/no.json @@ -221,5 +221,8 @@ "The current pressure level is": "Trykknivået er nå", "which is within the suggested range": "som er innenfor den anbefalte rekkevidden", "Warning": "Advarsel", - "which is NOT within the suggested range": "som IKKE er innenfor den anbefalte rekkevidden" + "which is NOT within the suggested range": "som IKKE er innenfor den anbefalte rekkevidden", + "The current battery level is": "Batterinivået er", + "which is above the suggested minimum": "som er mer enn anbefalt minimum", + "Failed to schedule mission ": "Kunne ikke planlegge oppdrag " }