diff --git a/src/components/EditTrainingDialog.vue b/src/components/EditTrainingDialog.vue
index 51a3a07..a6e6bff 100644
--- a/src/components/EditTrainingDialog.vue
+++ b/src/components/EditTrainingDialog.vue
@@ -16,10 +16,13 @@ import useLocalizedActivities from '@/hooks/localizedActivities';
const scheduleStore = useScheduleStore();
const {schedule} = storeToRefs(scheduleStore);
const {addOrEditTraining} = scheduleStore;
+
const appStateStore = useAppStateStore();
const {closeEditTrainingDialog} = appStateStore;
const {trainingDialogOpen, trainingData} = storeToRefs(appStateStore);
+
const {t} = useI18n();
+
const {isSmallScreen} = useScreenSize();
const tickLabels = computed(() => ({
@@ -72,10 +75,10 @@ const resetAndClose = () => {
persistent
>
- {{ t('editTraining.title') }}
+ {{ $t('editTraining.title') }}
- {{ t('editTraining.activity') }}
+ {{ $t('editTraining.activity') }}
{
@input="v$.description.$touch"
@blur="v$.description.$touch"
/>
- {{ t('editTraining.intensity') }}
+ {{ $t('editTraining.intensity') }}
{
color="primary"
data-test-id="edit-training-save-button"
@click="handleSave()"
- >{{ t('editTraining.save') }}{{ $t('editTraining.save') }}
{{ t('editTraining.closeDialog') }}{{ $t('editTraining.closeDialog') }}
diff --git a/src/components/ScheduleSettings.vue b/src/components/ScheduleSettings.vue
index 2fb7536..4b8c077 100644
--- a/src/components/ScheduleSettings.vue
+++ b/src/components/ScheduleSettings.vue
@@ -1,7 +1,6 @@
- {{ training.title || t(`activities.${training.activity}`) }}
+ {{ training.title || $t(`activities.${training.activity}`) }}
-
+
{{ training.duration }} {{ schedule.unitOfTime }}
-
+
{{ training.location }}
-
- {{ t(`intensities.${Intensity[training.intensity]}`) }}
+
+ {{ $t(`intensities.${Intensity[training.intensity]}`) }}
diff --git a/src/components/TrainingCard.vue b/src/components/TrainingCard.vue
index 96fdc4e..84a2716 100644
--- a/src/components/TrainingCard.vue
+++ b/src/components/TrainingCard.vue
@@ -1,6 +1,5 @@
@@ -32,27 +30,27 @@ const {t} = useI18n();
>
- {{ training.title || t(`activities.${training.activity}`) }}
+ {{ training.title || $t(`activities.${training.activity}`) }}
-
+
{{ training.duration }} {{ schedule.unitOfTime }}
-
+
{{ training.location }}
-
- {{ t(`intensities.${Intensity[training.intensity]}`) }}
+
+ {{ $t(`intensities.${Intensity[training.intensity]}`) }}
@@ -65,9 +63,7 @@ const {t} = useI18n();
v-else
class="training-card__show-summary-button"
@click="toggleSummaryShown(training.id)"
- >{{
- t(isSummaryShown(training.id) ? 'trainingCard.hideSummary' : 'trainingCard.showSummary')
- }}{{ $t(isSummaryShown(training.id) ? 'trainingCard.hideSummary' : 'trainingCard.showSummary') }}
diff --git a/src/components/TrainingCardActions.vue b/src/components/TrainingCardActions.vue
index b40d67f..972a843 100644
--- a/src/components/TrainingCardActions.vue
+++ b/src/components/TrainingCardActions.vue
@@ -1,5 +1,4 @@
@@ -23,12 +24,12 @@ const {weekdays} = useWeekDays();
variant="flat"
class="training-card__edit-button"
@click="openEditTrainingDialog(training)"
- >{{ t('trainingCard.editTraining') }}{{ $t('trainingCard.editTraining') }}
- {{ t('trainingCard.actions') }}
+ {{ $t('trainingCard.actions') }}
@@ -36,13 +37,13 @@ const {weekdays} = useWeekDays();
-
+
-
+
{{ t('trainingCard.deleteTraining') }}{{ $t('trainingCard.deleteTraining') }}
diff --git a/src/components/TrainingCardSummary.vue b/src/components/TrainingCardSummary.vue
index 575b449..272ff43 100644
--- a/src/components/TrainingCardSummary.vue
+++ b/src/components/TrainingCardSummary.vue
@@ -1,12 +1,11 @@
@@ -23,24 +23,24 @@ const {t} = useI18n();
prepend-icon="mdi-plus"
variant="tonal"
@click="openNewTrainingDialog(weekId, dayIndex)"
- >{{ t('weekCalendar.addTraining') }}{{ $t('weekCalendar.addTraining') }}
{{ t('weekCalendar.copyWeek') }}{{ $t('weekCalendar.copyWeek') }}
{{ t('weekCalendar.deleteWeek') }}{{ $t('weekCalendar.deleteWeek') }}
diff --git a/src/components/__tests__/__snapshots__/ScheduleSettings.spec.ts.snap b/src/components/__tests__/__snapshots__/ScheduleSettings.spec.ts.snap
index 78e22d8..7282a14 100644
--- a/src/components/__tests__/__snapshots__/ScheduleSettings.spec.ts.snap
+++ b/src/components/__tests__/__snapshots__/ScheduleSettings.spec.ts.snap
@@ -23,7 +23,7 @@ exports[`ScheduleSettings > mounts 1`] = `
-