Skip to content

Commit 2875e97

Browse files
authored
Minecraft translation fix (#929)
* Fixes translation for minecraft widget * fix spelling * fix capitalization * fixed languages being swapped on accident * fix formatting * fix merge errors
1 parent 0973049 commit 2875e97

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

src/lib/components/home/Minecraft.svelte

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import { type IMinecraftData } from "minecraft-server-ping";
3+
import * as m from "$paraglide/messages";
34
45
let { minecraftStatus }: { minecraftStatus: Promise<IMinecraftData | null> } =
56
$props();
@@ -42,13 +43,14 @@
4243
</div>
4344
</div>
4445
<div class="flex h-full flex-col justify-between rounded-b-xl bg-base-200 p-4">
45-
Gå med i Sektionents Minecraft Server, delad med F-sektionen! För att kunna gå
46-
med måste du registrera dig nedan.
46+
{m.minecraft_server_description()}
4747
<div class="flex w-full justify-around">
4848
<a class="btn btn-ghost btn-sm" href="https://dynmap.dsek.se"
49-
><span class="i-mdi-map text-lg text-primary"></span>Dynmap</a
49+
><span class="i-mdi-map text-lg text-primary"
50+
></span>{m.minecraft_dynmap()}</a
5051
><a class="btn btn-ghost btn-sm" href="https://whitelist.dsek.se"
51-
><span class="i-mdi-playlist-add text-lg text-primary"></span>Join Now!</a
52+
><span class="i-mdi-playlist-add text-lg text-primary"
53+
></span>{m.minecraft_join_prompt()}</a
5254
>
5355
</div>
5456
<div class="m-2 flex flex-row justify-center rounded-xl bg-base-300 p-3">
@@ -65,6 +67,6 @@
6567
<p>-</p>
6668
{/await}</span
6769
>
68-
&nbsp;spelare online just nu
70+
&nbsp;{m.minecraft_players_online()}
6971
</div>
7072
</div>

src/translations/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,10 @@
829829
"pub_example": "Food to pub",
830830
"add_receipt": "Add receipt",
831831
"add_row": "Add row",
832+
"minecraft_server_description": "Join the Guild's Minecraft Server, shared with the F-Guild! To join the server you have to sign up with the button below.",
833+
"minecraft_dynmap": "Dynmap",
834+
"minecraft_join_prompt": "Join now!",
835+
"minecraft_players_online": "players online right now",
832836
"gallery": "Gallery",
833837
"gallery_album": "Album",
834838
"gallery_create_album": "Create album",

src/translations/sv.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,10 @@
826826
"pub_example": "Mat till pub",
827827
"add_receipt": "Lägg till kvitto",
828828
"add_row": "Lägg till rad",
829+
"minecraft_server_description": "Gå med i Sektionens Minecraft Server, delad med F-sektionen! För att kunna gå med måste du registrera dig nedan.",
830+
"minecraft_dynmap": "Dynmap",
831+
"minecraft_join_prompt": "Gå med nu!",
832+
"minecraft_players_online": "spelare online just nu",
829833
"gallery": "Bildgalleri",
830834
"gallery_album": "Album",
831835
"gallery_create_album": "Skapa album",

0 commit comments

Comments
 (0)