diff client/src/components/gauge/Waterlevel.vue @ 4721:b2119cf5c7fb

mark date for translation
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 17 Oct 2019 16:21:12 +0200
parents cd9216c073fd
children 9412bc2545e8
line wrap: on
line diff
--- a/client/src/components/gauge/Waterlevel.vue	Thu Oct 17 14:00:14 2019 +0200
+++ b/client/src/components/gauge/Waterlevel.vue	Thu Oct 17 16:21:12 2019 +0200
@@ -117,6 +117,7 @@
  * * Fadi Abbud <fadi.abbud@intevation.de>
  */
 
+import app from "@/main";
 import { mapState, mapGetters } from "vuex";
 import * as d3Base from "d3";
 import { lineChunked } from "d3-line-chunked";
@@ -365,8 +366,8 @@
           ? d3.timeFormat("%H:%M")
           : d3.timeMonth(date) < date
           ? d3.timeWeek(date) < date
-            ? d3.timeFormat("%a %d")
-            : d3.timeFormat("%b %d")
+            ? d3.timeFormat(app.$gettext("%a %d"))
+            : d3.timeFormat(app.$gettext("%b %d"))
           : d3.timeYear(date) < date
           ? d3.timeFormat("%B")
           : d3.timeFormat("%Y"))(date);