[OSM-dev] Localize start_date tags (and similar)
Stephan Bösch-Plepelits
skunk at xover.mud.at
Thu Jan 17 12:34:10 UTC 2019
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: skunk at xover.mud.at > Blog: plepe.at > Code: github.com/plepe |
| > Twitter: twitter.com/plepe > Jabber: skunk at jabber.at |
| > Mastodon: @plepe at en.osm.town |
`----------------------------------------------------------------------'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20190117/970fd81f/attachment.sig>
More information about the dev
mailing list