diff --git a/frontend/src/components/MealPlan/MealPlanCard.vue b/frontend/src/components/MealPlan/MealPlanCard.vue
index b5c176638..702a9bded 100644
--- a/frontend/src/components/MealPlan/MealPlanCard.vue
+++ b/frontend/src/components/MealPlan/MealPlanCard.vue
@@ -17,7 +17,7 @@
:src="getImage(meal.slug)"
@click="openSearch(index)"
>
- {{ meal.dateText }}
+ {{ $d( new Date(meal.date), 'short' ) }}
{{ meal.name }}
diff --git a/frontend/src/i18n.js b/frontend/src/i18n.js
index 41d46703c..c51d0f25c 100644
--- a/frontend/src/i18n.js
+++ b/frontend/src/i18n.js
@@ -20,8 +20,27 @@ function loadLocaleMessages() {
return messages;
}
+const dateTimeFormats = {
+ 'en': {
+ short: {
+ month: 'short',
+ day: 'numeric',
+ weekday: 'long'
+ },
+ },
+ 'fr': {
+ short: {
+ month: 'short',
+ day: 'numeric',
+ weekday: 'long'
+ }
+ }
+}
+
+
export default new VueI18n({
locale: "en",
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || "en",
messages: loadLocaleMessages(),
+ dateTimeFormats
});
diff --git a/frontend/src/pages/MealPlanPage.vue b/frontend/src/pages/MealPlanPage.vue
index 90d583d2a..eb87f34b7 100644
--- a/frontend/src/pages/MealPlanPage.vue
+++ b/frontend/src/pages/MealPlanPage.vue
@@ -25,8 +25,8 @@
>
- {{ formatDate(mealplan.startDate) }} -
- {{ formatDate(mealplan.endDate) }}
+ {{ $d( new Date(mealplan.startDate), 'short' ) }} -
+ {{ $d( new Date(mealplan.endDate), 'short' ) }}
@@ -43,7 +43,7 @@
-
+