[openstreetmap/openstreetmap-website] Fallback processing for community name i18n (Issue #3814)

Andy Allan notifications at github.com
Wed Dec 7 17:33:54 UTC 2022


The work here falls into two main parts:

* Create the `community_id` by simplification of the community name, as discussed here and upstream. We can either reimplement the simplify function and (diacritics module) in ruby, or wait for the generated keys to be added upstream instead. We might be best having a stab at the upstream implementation ourselves, if anyone fancies doing that.
* Implement the interpolation. For example, finding the `{community}` placeholder in a string and filling that in. Upstream uses [a regexp-based interpolation](https://github.com/osmlab/osm-community-index/blob/d31da8c976ce589c79d01b1a7bd6ac924610a1df/lib/resolve_strings.js#L79-L82) (rather than e.g. a third-party templating library) so we can reimplement that fairly easily too. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3814#issuecomment-1341325595
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/3814/1341325595 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20221207/608d9ef5/attachment-0001.htm>


More information about the rails-dev mailing list