Skip to content

Commit

Permalink
Translated Cafe opening hours (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgren authored Oct 26, 2024
1 parent 010eec9 commit 548f775
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/routes/(app)/committees/cafe/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script lang="ts">
import { enhance } from "$app/forms";
import * as m from "$paraglide/messages";
import { languageTag } from "$paraglide/runtime";
import CommitteePage from "../CommitteePage.svelte";
import type { PageData } from "./$types";
Expand All @@ -12,7 +14,7 @@
while (date.getDay() - 1 !== weekday) {
date.setDate(date.getDate() + 1);
}
return date.toLocaleString("sv-SE", {
return date.toLocaleString(languageTag(), {
weekday: "long",
});
};
Expand All @@ -24,9 +26,9 @@
class="card float-right ml-4 w-full border border-primary bg-base-100 p-6 shadow-xl lg:max-w-80"
>
<h2 class="mb-2 p-2 font-bold lg:text-xl">
Öppettider
{m.committees_cafe_openinghours()}
<span class="block text-sm font-light text-base-content text-opacity-40"
>Caféet</span
>{m.committees_cafe_thecafe()}</span
>
</h2>
<ol>
Expand Down
4 changes: 3 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -756,5 +756,7 @@
"nollning_wikia_literature_body": "Facebook groupo where a lot of second-hand course literature is being sold by older students, it's a private group but everyone is allowed to join, just ask a phadder to approve you.",
"members_errors_tooLargePicture": "Profile picture too big, max size is {size}.",
"nollning_events_ticketCTA": "Ticket/Register",
"home_volunteer": "Volunteer"
"home_volunteer": "Volunteer",
"committees_cafe_openinghours": "Opening hours",
"committees_cafe_thecafe": "The Cafe"
}
4 changes: 3 additions & 1 deletion src/translations/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -752,5 +752,7 @@
"nollning_wikia_literature_body": "Facebookgrupp där mycket kurslitteratur säljs av äldre studenter, det är en privat grupp men alla får gå med, be en phadder godkänna dig.",
"members_errors_tooLargePicture": "Profilbild är för stor, den får max vara {size}.",
"nollning_events_ticketCTA": "Biljett/Anmälan",
"home_volunteer": "Funktionär"
"home_volunteer": "Funktionär",
"committees_cafe_openinghours": "Öppettider",
"committees_cafe_thecafe": "Caféet"
}

0 comments on commit 548f775

Please sign in to comment.