Localize start_date tags (and similar)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Localize start_date tags (and similar)

Stephan Bösch-Plepelits-2
Hi!

I developed a Javascript module for localizing start_date (and similar)
tags:

https://github.com/plepe/openstreetmap-date-format

e.g. it can turn a value "~1920..1925-10" into "between c. 1920 and October
1925". when German locale is loaded: "zwischen ca. 1920 und Oktober 1925".

Currently only English and German are available (I don't speak other
languages well enough).

The library is already in use within OpenStreetBrowser, e.g. in the
category "Building age":
https://www.openstreetbrowser.org/#map=18/47.07159/15.43820&categories=buildings-start_date
(read more about the latest update here: https://blog.openstreetbrowser.org/node/64)

If you are interested in using this library, it is available on npmjs:
https://www.npmjs.com/package/openstreetmap-date-format

If you are interested in contributing, e.g. to add further locales, go to
https://github.com/plepe/openstreetmap-date-format/blob/master/HOWTO_CONTRIBUTE.md

greetings,
        Stephan
--
Seid unbequem, seid Sand, nicht Öl im Getriebe der Welt! - Günther Eich
,----------------------------------------------------------------------.
| Stephan Bösch-Plepelits  ❤ code ❤ urbanism ❤ free software ❤ cycling |
| Projects:                                                            |
| > OpenStreetMap: openstreetbrowser.org > openstreetmap.at            |
| > Urbanism: Radlobby Wien                                            |
| Contact:                                                             |
| > Mail: [hidden email] > Blog: plepe.at > Code: github.com/plepe |
| > Twitter: twitter.com/plepe > Jabber: [hidden email]               |
| > Mastodon: @[hidden email]                                       |
`----------------------------------------------------------------------'

_______________________________________________
dev mailing list
[hidden email]
https://lists.openstreetmap.org/listinfo/dev

signature.asc (828 bytes) Download Attachment