Skip to content

Create solution for run-time styling of browser-language name values #854

Closed

Description

@jeffreyameyer

What's your idea for a cool feature that would help you use OHM better.
Now that we have upgraded our stylesheets to expressions (#775), in order to be able to provide the stylesheet with style-able local names (browser-specific #481 & browser+local #799) based on all the localized name variations available (#679), we'll still need to work some magic on all of those name:*=* tags.

There are a couple ways of handling this, either in the client or on the server side.

@1ec5 has some pointers to relevant tickets to help with deciding which of these approaches we may pursue.

There are currently no real workarounds to this problem.

Activity

  1. 1ec5 commented on Jul 25, 2024

    @1ec5
    Member

    I think #481 (comment) captures all the next steps. The runtime styling to switch languages requires either pulling in openstreetmap/openstreetmap-website#4042 (minus the addition of the MapTiler style) or separately installing the mapbox-gl-language plugin, as a precursor to the bilingual labeling that’s blocked by osm-americana/openstreetmap-americana#914.

  2. jeffreyameyer commented on Jul 25, 2024

    @jeffreyameyer
    MemberAuthor

    @danrademacher - not sure who should chose between the 2 options @1ec5 identifies above (or create something altogether different), but let's have a discussion on which is wisest path to choose. I'm most interested in whatever keeps us on a path for the 2-line labels most efficiently.

  3. 1ec5 commented on Jul 25, 2024

    @1ec5
    Member

    openstreetmap/openstreetmap-website#4042 has the advantage of hooking into the user’s existing openhistoricalmap.org language preference. Separately installing mapbox-gl-language might let us get away with a lighter touch on the codebase, but it can only respond to the browser’s language preference. Neither solution precludes installing bilingual labels down the line.

  4. 1ec5 commented on Aug 9, 2024

    @1ec5
    Member

    OpenHistoricalMap/openhistoricalmap-embed#8 implements this feature for the embed site. However, we’ll still need to leave this issue open to track similar changes to the main site.

  5. added theissue type on Mar 16, 2025
  6. changed the title [-]Create solution for run-time styling of brower-language name values[/-] [+]Create solution for run-time styling of browser-language name values[/+] on Mar 17, 2025
  7. added
    website
    internationalization
    and removed on Mar 17, 2025
  8. 1ec5 commented on May 27, 2025

    @1ec5
    Member

    Fixed for the main site in OpenHistoricalMap/ohm-deploy#530.

  9. moved this from Ready for Staging to In Production in OpenHistoricalMap Dev Planningon Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

internationalizationwebsite

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions