[openstreetmap/openstreetmap-website] Apply lang attribute to localized name:* values (#6834) (PR #6854)

Arpan Mukherjee notifications at github.com
Thu Mar 12 08:15:09 UTC 2026


Arpan200502 left a comment (openstreetmap/openstreetmap-website#6854)

Moved the language extraction logic out of the view into `BrowseTagsHelper` as suggested, and updated the view to call the helper instead of running the regex directly in the template.

Also switched to the broader regex discussed earlier to better detect language codes in tag keys. Existing tests rendering the partial continue to pass with the helper in place.


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

Message ID: <openstreetmap/openstreetmap-website/pull/6854/c4044815175 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260312/f5a515ec/attachment-0001.htm>


More information about the rails-dev mailing list