Small tweaks to translation label

This commit is contained in:
Pieter Vander Vennet 2021-02-20 03:29:55 +01:00
parent e2d5cefda3
commit dcdb5b9a22
12 changed files with 56 additions and 33 deletions

View file

@ -276,6 +276,16 @@ export default class MetaTagging {
}
);
private static currentTime = new SimpleMetaTagger(
["_date:now"],
"Adds the time that the data got loaded - pretty much the time of downloading from overpass. The format is YYYY-MM-DD hh:mm, aka 'sortable' aka ISO-8601-but-not-entirely",
feature => {
const now = new Date();
// @ts-ignore
feature.properties["_date:now"] = now.toISOString().splice(0,-5).replace("T", " ");
}
)
private static metatags = [
MetaTagging.latlon,
@ -283,7 +293,8 @@ export default class MetaTagging {
MetaTagging.country,
MetaTagging.isOpen,
MetaTagging.carriageWayWidth,
MetaTagging.directionSimplified
MetaTagging.directionSimplified,
MetaTagging.currentTime
];