[openstreetmap/openstreetmap-website] Allow localized & country-specific banners (PR #6851)
Minh Nguyễn
notifications at github.com
Tue Mar 3 00:13:14 UTC 2026
1ec5 left a comment (openstreetmap/openstreetmap-website#6851)
The referenced board minutes refer to “enabling geoip targeting”, which we don’t have yet. This would require a third-party service. For example, [Wikimedia sites](https://wikitech.wikimedia.org/wiki/Geolocation) rely on a paid MaxMind account for their geotargeted CentralNotice banners.
If the goal is to limit the audience to Italians but only on a best effort basis, then a simpler, cheaper, and more private alternative would be for the JavaScript frontend code to check whether the user is looking at Italy on the map, regardless of where they sit. iD’s community index integration does something similar using the country-coder package.
Another possibility would be to simply show the banner to all Italian speakers, even if it results in some Swiss users seeing it too. That’s essentially what you’re doing here, since we don’t have a separate Swiss Italian localization. You wouldn’t need to create a more specific `it-IT` localization in that case.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6851#issuecomment-3987778860
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6851/c3987778860 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260302/dfd48873/attachment.htm>
More information about the rails-dev
mailing list