chore: translation

This commit is contained in:
Reto Aebersold 2023-12-19 11:01:36 +01:00
parent 6769169817
commit ce234a0538
4 changed files with 16 additions and 14 deletions

View File

@ -12,12 +12,12 @@ defineProps<{
<template>
<AssignmentItem
:task-title="`Praxisauftrag: ${taskTitle}`"
:task-title="`${$t('a.Praxisauftrag')}: ${taskTitle}`"
:circle-title="circleTitle"
:pending-tasks="pendingTasks"
:task-link="taskLink"
pending-tasks-label="Ergebnisse abgegeben"
task-link-pending-label="Ergebnisse bewerten"
task-link-label="Praxisaufträge anschauen"
:pending-tasks-label="$t('a.Ergebnisse abgegeben')"
:task-link-pending-label="$t('a.Ergebnisse bewerten')"
:task-link-label="$t('a.Praxisaufträge anschauen')"
/>
</template>

View File

@ -6,7 +6,7 @@
class="btn-text mb-4 inline-flex items-center pl-0"
>
<it-icon-arrow-left class="it-icon"></it-icon-arrow-left>
{{ $t("a.Zurück") }}
{{ $t("general.back") }}
</router-link>
<div class="bg-white">

View File

@ -5,26 +5,28 @@ import { useCurrentCourseSession } from "@/composables";
import ItDropdownSelect from "@/components/ui/ItDropdownSelect.vue";
import { computed, type Ref, ref } from "vue";
import PraxisAssignmentItem from "@/components/cockpit/mentor/PraxisAssignmentItem.vue";
import { useTranslation } from "i18next-vue";
const { t } = useTranslation();
const courseSession = useCurrentCourseSession();
const mentorCockpitStore = useMentorCockpit(courseSession.value.id);
const summary = mentorCockpitStore.summary;
const statusFilterValue = ref({ name: "Alle", id: "_all" });
const statusFilterValue = ref({ name: t("Alle"), id: "_all" });
const statusFilter = ref([
{ name: "Alle", id: "_all" },
{ name: "Zu erledigen", id: "todo" },
{ name: t("Alle"), id: "_all" },
{ name: t("a.Zu erledigen"), id: "todo" },
]);
const circleFilterValue = ref({ name: "Circle: Alle", id: "_all" });
const circleFilterValue = ref({ name: t("a.AlleCircle"), id: "_all" });
const circleFilter = computed(() => {
if (!summary.value) return [];
return [
{ name: "Circle: Alle", id: "_all" },
{ name: t("a.AlleCircle"), id: "_all" },
...summary.value.circles.map((circle) => ({
name: `Circle: ${circle.title}`,
id: circle.id,

View File

@ -29,7 +29,7 @@ const getParticipantById = (id: string): Participant | null => {
<template>
<div v-if="praxisAssignment">
<div class="p-6">
<h2 class="mb-2">Praxisauftrag: {{ praxisAssignment.title }}</h2>
<h2 class="mb-2">{{ $t("a.Praxisauftrag") }}: {{ praxisAssignment.title }}</h2>
<span class="text-gray-800">
Circle «{{ mentorCockpitStore.getCircleTitleById(praxisAssignment.circle_id) }}»
</span>
@ -40,7 +40,7 @@ const getParticipantById = (id: string): Participant | null => {
>
<span>{{ praxisAssignment.pending_evaluations }}</span>
</div>
<span>Ergebnisse abgegeben</span>
<span>{{ $t("a.Ergebnisse abgegeben") }}</span>
</div>
</template>
</div>
@ -82,7 +82,7 @@ const getParticipantById = (id: string): Participant | null => {
<it-icon-check class="h-5 w-5"></it-icon-check>
</span>
</div>
<span>Ergebnisse abgegeben</span>
<span>{{ $t("a.Ergebnisse abgegeben") }}</span>
</template>
<template v-if="item.status == 'EVALUATED'">
<div
@ -92,7 +92,7 @@ const getParticipantById = (id: string): Participant | null => {
<it-icon-check class="h-5 w-5"></it-icon-check>
</span>
</div>
<span>Bewertung freigeben</span>
<span>{{ $t("a.Bewertung freigeben") }}</span>
</template>
</div>
<!-- Right -->