comparison 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
comparison
equal deleted inserted replaced
4720:b3b33e94cee8 4721:b2119cf5c7fb
115 * * Bernhard Reiter <bernhard@intevation.de> 115 * * Bernhard Reiter <bernhard@intevation.de>
116 * * Markus Kottländer <markus.kottlaender@intevation.de> 116 * * Markus Kottländer <markus.kottlaender@intevation.de>
117 * * Fadi Abbud <fadi.abbud@intevation.de> 117 * * Fadi Abbud <fadi.abbud@intevation.de>
118 */ 118 */
119 119
120 import app from "@/main";
120 import { mapState, mapGetters } from "vuex"; 121 import { mapState, mapGetters } from "vuex";
121 import * as d3Base from "d3"; 122 import * as d3Base from "d3";
122 import { lineChunked } from "d3-line-chunked"; 123 import { lineChunked } from "d3-line-chunked";
123 import debounce from "debounce"; 124 import debounce from "debounce";
124 import { saveAs } from "file-saver"; 125 import { saveAs } from "file-saver";
363 ? d3.timeFormat("%H:%M") 364 ? d3.timeFormat("%H:%M")
364 : d3.timeDay(date) < date 365 : d3.timeDay(date) < date
365 ? d3.timeFormat("%H:%M") 366 ? d3.timeFormat("%H:%M")
366 : d3.timeMonth(date) < date 367 : d3.timeMonth(date) < date
367 ? d3.timeWeek(date) < date 368 ? d3.timeWeek(date) < date
368 ? d3.timeFormat("%a %d") 369 ? d3.timeFormat(app.$gettext("%a %d"))
369 : d3.timeFormat("%b %d") 370 : d3.timeFormat(app.$gettext("%b %d"))
370 : d3.timeYear(date) < date 371 : d3.timeYear(date) < date
371 ? d3.timeFormat("%B") 372 ? d3.timeFormat("%B")
372 : d3.timeFormat("%Y"))(date); 373 : d3.timeFormat("%Y"))(date);
373 }; 374 };
374 // creating the axes based on the scales 375 // creating the axes based on the scales