Skip to content

[Simulator] Add missed compass module UI strings. #924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lang/ui.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,14 @@
"defaultMessage": "Compass",
"description": "Compass title"
},
"simulator-compass-heading-one": {
"defaultMessage": "Heading",
"description": "Sub heading for simulator Compass module"
},
"simulator-compass-heading-two": {
"defaultMessage": "Magnetic field strength",
"description": "Sub heading for simulator Compass module"
},
"simulator-data-logging-empty": {
"defaultMessage": "No log entries.",
"description": "Shown in the simulator Data logging table when there are no rows"
Expand Down
8 changes: 8 additions & 0 deletions lang/ui.fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,14 @@
"defaultMessage": "Compass",
"description": "Compass title"
},
"simulator-compass-heading-one": {
"defaultMessage": "Heading",
"description": "Sub heading for simulator Compass module"
},
"simulator-compass-heading-two": {
"defaultMessage": "Magnetic field strength",
"description": "Sub heading for simulator Compass module"
},
"simulator-data-logging-empty": {
"defaultMessage": "No log entries.",
"description": "Shown in the simulator Data logging table when there are no rows"
Expand Down
8 changes: 8 additions & 0 deletions lang/ui.lol.json
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,14 @@
"defaultMessage": "Compass",
"description": "Compass title"
},
"simulator-compass-heading-one": {
"defaultMessage": "Heading",
"description": "Sub heading for simulator Compass module"
},
"simulator-compass-heading-two": {
"defaultMessage": "Magnetic field strength",
"description": "Sub heading for simulator Compass module"
},
"simulator-data-logging-empty": {
"defaultMessage": "No log entries.",
"description": "Shown in the simulator Data logging table when there are no rows"
Expand Down
12 changes: 12 additions & 0 deletions src/messages/ui.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1817,6 +1817,18 @@
"value": "Compass"
}
],
"simulator-compass-heading-one": [
{
"type": 0,
"value": "Heading"
}
],
"simulator-compass-heading-two": [
{
"type": 0,
"value": "Magnetic field strength"
}
],
"simulator-data-logging-empty": [
{
"type": 0,
Expand Down
12 changes: 12 additions & 0 deletions src/messages/ui.fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1817,6 +1817,18 @@
"value": "Compass"
}
],
"simulator-compass-heading-one": [
{
"type": 0,
"value": "Heading"
}
],
"simulator-compass-heading-two": [
{
"type": 0,
"value": "Magnetic field strength"
}
],
"simulator-data-logging-empty": [
{
"type": 0,
Expand Down
12 changes: 12 additions & 0 deletions src/messages/ui.lol.json
Original file line number Diff line number Diff line change
Expand Up @@ -1761,6 +1761,18 @@
"value": "Compass"
}
],
"simulator-compass-heading-one": [
{
"type": 0,
"value": "Heading"
}
],
"simulator-compass-heading-two": [
{
"type": 0,
"value": "Magnetic field strength"
}
],
"simulator-data-logging-empty": [
{
"type": 0,
Expand Down
5 changes: 3 additions & 2 deletions src/simulator/CompassModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
import { Box, HStack, Icon, Stack, Text } from "@chakra-ui/react";
import { ReactNode, useEffect, useRef } from "react";
import { FormattedMessage } from "react-intl";
import {
RangeSensor as RangeSensorType,
SensorStateKey,
Expand Down Expand Up @@ -51,7 +52,7 @@ const CompassModule = ({
) : (
<>
<Text as="h4" fontSize="sm">
Heading
<FormattedMessage id="simulator-compass-heading-one" />
</Text>
<HStack spacing={3} pl={4} width="100%">
<Axis
Expand All @@ -69,7 +70,7 @@ const CompassModule = ({
</HStack>
<Stack spacing={5} mt={5}>
<Text as="h4" fontSize="sm">
Magnetic field strength
<FormattedMessage id="simulator-compass-heading-two" />
</Text>
<Axis
axis="compassX"
Expand Down