Skip to content

Commit

Permalink
Add missing translations and format error message
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Jan 25, 2024
1 parent f33c903 commit 867bb73
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const ScheduleMissionDialog = (props: IProps): JSX.Element => {
BackendAPICaller.scheduleMissionDefinition(mission.id, selectedRobot.id).catch(() => {
setAlert(
AlertType.RequestFail,
<FailedRequestAlertContent message={`Failed to schedule mission ${mission.name}`} />
<FailedRequestAlertContent message={TranslateText('Failed to schedule mission ') + mission.name} />
)
setLoadingMissionSet((currentSet: Set<string>) => {
const updatedSet: Set<string> = new Set(currentSet)
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/language/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
}
5 changes: 4 additions & 1 deletion frontend/src/language/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
}

0 comments on commit 867bb73

Please sign in to comment.