Skip to content

Commit

Permalink
feat: Added a translation for Hectopascal and added a description of …
Browse files Browse the repository at this point in the history
…the wind pressure
  • Loading branch information
FleetAdmiralJakob committed Jan 25, 2024
1 parent 404e45c commit 694f069
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/web/public/locales/de/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"knots": "Knoten",
"meters per second": "Meter pro Sekunde",
"beaufort": "Beaufort",
"hectopascals": "Hektopascal",

"share text": "Checke doch mal diese Seite aus: ",

Expand Down
1 change: 1 addition & 0 deletions apps/web/public/locales/de/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"visibility card title": "Derzeitige Sichtweite",

"wind pressure card title": "Derzeitiger Wind",
"wind pressure card content": "<b>Atmosphärischer Druck auf dem Meeresspiegel.</b> <br /> Auf Meereshöhe ist der atmosphärische Druck die Kraft, die durch das Gewicht der darüber befindlichen Luft ausgeübt wird und im Durchschnitt bei 1013,25 hPa liegt.",

"not available": "Nicht verfügbar",

Expand Down
1 change: 1 addition & 0 deletions apps/web/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"knots": "Knots",
"meters per second": "Meters per second",
"beaufort": "Beaufort",
"hectopascals": "Hectopascals",

"share text": "Check out this page: ",

Expand Down
1 change: 1 addition & 0 deletions apps/web/public/locales/en/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"visibility card title": "Current Visibility",

"wind pressure card title": "Current Wind & Pressure",
"wind pressure card content": "<b>Atmospheric pressure on the sea level.</b> <br /> At sea level, atmospheric pressure is the force exerted by the weight of the air above, averaging around 1013.25 hPa.",

"not available": "Not available",

Expand Down
6 changes: 5 additions & 1 deletion apps/web/src/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -935,10 +935,14 @@ const InternalHome = observer(() => {
className="underline"
href="https://en.wikipedia.org/wiki/Pascal_(unit)"
>
Hectopascal (hPa)
{translationCommon("hectopascals")} (hPa)
<LuLink className="ml-1 inline h-4 w-4" />
</Link>
<br />
{ReactHtmlParser(
translationHome("wind pressure card content"),
)}
<br /> <br />
<span className="font-semibold">
{translationHome("speed")}:
</span>{" "}
Expand Down

1 comment on commit 694f069

@vercel
Copy link

@vercel vercel bot commented on 694f069 Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.