Arpan200502 left a comment (openstreetmap/openstreetmap-website#6834)
Hi, I’d like to work on this issue.
>From what I understand, localized tag values such as `name:fr`, `name:ja`,
>etc. are currently rendered without a `lang` attribute, which can affect font
>selection and screen reader behavior.
My plan is to:
- Identify where localized tags are rendered in the element page view
- Detect subkeys matching language patterns (e.g. `name:<lang>`)
- Extract the language code and apply it as a `lang` attribute in the rendered
HTML
- Add tests to ensure correct rendering
I will also look into whether basic IETF language tag validation should be
included or if a regex-based approach is sufficient.
Please let me know if this approach sounds reasonable.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6834#issuecomment-3991712954
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/issues/6834/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev