@@ -81,33 +81,33 @@ function formatWeekday(weekday: string) {
>
-
+
{{ formatTimestamp(slotProps.data.start) }}
-
+
{{ formatTimestamp(slotProps.data.end) }}
{{ formatWeekday(item.day) }}
{{
- $t("moduleInformation.nthWeek", {
+ t("moduleInformation.nthWeek", {
count: item.week,
})
}}
@@ -150,25 +150,25 @@ function formatWeekday(weekday: string) {
- {{ $t("moduleInformation.start") }}:
+ {{ t("moduleInformation.start") }}:
|
{{ formatTimestamp(item.start) }} |
- {{ $t("moduleInformation.end") }}:
+ {{ t("moduleInformation.end") }}:
|
{{ formatTimestamp(item.end) }} |
- {{ $t("moduleInformation.room") }}:
+ {{ t("moduleInformation.room") }}:
|
{{ item.rooms }} |
- {{ $t("moduleInformation.notes") }}:
+ {{ t("moduleInformation.notes") }}:
|
{{ item.notes }} |
diff --git a/frontend/src/components/ModuleSelection.vue b/frontend/src/components/ModuleSelection.vue
index 5629e9e..cb20b5b 100644
--- a/frontend/src/components/ModuleSelection.vue
+++ b/frontend/src/components/ModuleSelection.vue
@@ -20,6 +20,8 @@ along with this program. If not, see .
import { computed, ComputedRef, PropType } from "vue";
import { Module } from "../model/module.ts";
import moduleStore from "../store/moduleStore";
+import { useI18n } from "vue-i18n";
+const { t } = useI18n({ useScope: "global" });
const store = moduleStore();
const props = defineProps({
@@ -83,7 +85,7 @@ function toggleModule(module: Module) {
class="flex justify-content-between align-items-center flex-wrap md:mx-4"
>
- {{ $t("moduleSelection.modules") }} -
+ {{ t("moduleSelection.modules") }} -
{{ store.countModules() }}
{{
allSelected
- ? $t("moduleSelection.deselectAll")
- : $t("moduleSelection.selectAll")
+ ? t("moduleSelection.deselectAll")
+ : t("moduleSelection.selectAll")
}}
- {{ $t("moduleSelection.noModulesAvailable") }}
+ {{ t("moduleSelection.noModulesAvailable") }}
@@ -126,8 +128,8 @@ function toggleModule(module: Module) {
:icon="store.hasModule(item) ? 'pi pi-times' : 'pi pi-plus'"
:label="
store.hasModule(item)
- ? $t('moduleSelection.selected')
- : $t('moduleSelection.unselected')
+ ? t('moduleSelection.selected')
+ : t('moduleSelection.unselected')
"
outlined
:severity="store.hasModule(item) ? '' : 'secondary'"
diff --git a/frontend/src/components/ModuleTemplateDialog.vue b/frontend/src/components/ModuleTemplateDialog.vue
index f3c83f7..1f6ff95 100644
--- a/frontend/src/components/ModuleTemplateDialog.vue
+++ b/frontend/src/components/ModuleTemplateDialog.vue
@@ -66,7 +66,7 @@ const placeholders = computed(() => [
|