Mercurial > gemma
annotate client/src/lib/datelocalization.js @ 5521:3cfbc5769e8b
Make invalid output of ISRSrange_area() less likely
Since ST_Transform() might produce an invalid polygon, add an extra
ST_MakeValid().
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 21 Oct 2021 20:20:30 +0200 |
parents | 13575ffb8c1f |
children |
rev | line source |
---|---|
4665
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
1 import app from "@/main"; |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
2 const localeDateString = { |
4709
e6fb2b6ecf36
omit datetimelocalization
Thomas Junk <thomas.junk@intevation.de>
parents:
4665
diff
changeset
|
3 dateTime: "%a %e %b %X %Y", |
4710
558417908b37
hydrological_conditions: localize datestrings
Thomas Junk <thomas.junk@intevation.de>
parents:
4709
diff
changeset
|
4 date: "%d/%m/%Y", |
4711
13575ffb8c1f
hydrological_conditions: unify localization for brush and diagram
Thomas Junk <thomas.junk@intevation.de>
parents:
4710
diff
changeset
|
5 time: "%H:%M:%S", |
4665
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
6 periods: [app.$gettext("AM"), app.$gettext("PM")], |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
7 days: [ |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
8 app.$gettext("Sunday"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
9 app.$gettext("Monday"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
10 app.$gettext("Tuesday"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
11 app.$gettext("Wednesday"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
12 app.$gettext("Thursday"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
13 app.$gettext("Friday"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
14 app.$gettext("Saturday") |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
15 ], |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
16 shortDays: [ |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
17 app.$gettext("Sun"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
18 app.$gettext("Mon"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
19 app.$gettext("Tue"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
20 app.$gettext("Wed"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
21 app.$gettext("Thu"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
22 app.$gettext("Fri"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
23 app.$gettext("Sat") |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
24 ], |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
25 months: [ |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
26 app.$gettext("January"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
27 app.$gettext("February"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
28 app.$gettext("March"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
29 app.$gettext("April"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
30 app.$gettext("May"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
31 app.$gettext("June"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
32 app.$gettext("July"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
33 app.$gettext("August"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
34 app.$gettext("September"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
35 app.$gettext("October"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
36 app.$gettext("November"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
37 app.$gettext("December") |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
38 ], |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
39 shortMonths: [ |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
40 app.$gettext("Jan"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
41 app.$gettext("Feb"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
42 app.$gettext("Mar"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
43 app.$gettext("Apr"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
44 app.$gettext("May"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
45 app.$gettext("Jun"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
46 app.$gettext("Jul"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
47 app.$gettext("Aug"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
48 app.$gettext("Sep"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
49 app.$gettext("Oct"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
50 app.$gettext("Nov"), |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
51 app.$gettext("Dec") |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
52 ] |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
53 }; |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
54 |
c47c8085cc7e
client: translation: implement marking of diagram labels
Fadi Abbud <fadi.abbud@intevation.de>
parents:
diff
changeset
|
55 export { localeDateString }; |