forked from OpenRailwayMap/OpenRailwayMap-CartoCSS
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Localized station names #680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For #409 Work in progress
Owner
Author
…to language # Conflicts: # proxy/js/styles.mjs
This was referenced Dec 2, 2025
hiddewie
added a commit
that referenced
this pull request
Dec 5, 2025
Fixes #697 Make the map localization configurable. Followup on #680 and #691. No page reload needed. Even when changing browser language. The map will automatically reload. ## Settings ### Custom language <img width="838" height="258" alt="image" src="https://github.com/user-attachments/assets/7381074b-d9af-4b09-9e25-a18fa2b01634" /> <img width="331" height="221" alt="image" src="https://github.com/user-attachments/assets/8da421fc-ca91-464a-a854-a63624a8c425" /> ### Automatic <img width="838" height="258" alt="image" src="https://github.com/user-attachments/assets/354fc8f8-0518-4feb-b2f7-1734498d45b6" /> <img width="344" height="278" alt="image" src="https://github.com/user-attachments/assets/747c414d-c2b7-41c5-b5e6-dfdf376c56f7" /> ### Disabled <img width="826" height="182" alt="image" src="https://github.com/user-attachments/assets/b6487928-0f81-4128-9b0f-09d50c8b1631" /> <img width="304" height="254" alt="image" src="https://github.com/user-attachments/assets/2cc07497-7b1a-460d-9bf0-5aba2bf662e1" /> ### Browser language When the user changes browser language, the map is automatically reloaded with the chosen language (if the automatic localization is used). <img width="294" height="119" alt="image" src="https://github.com/user-attachments/assets/f5b5dcc0-9bbe-46ea-bb5b-968f0a2be4b1" />
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


For #409
For the station layers that contain names, provide a
langquery parameter.More ideal would be the
Accept-Languageheader that every browser sends, but the cache is not varied across that header (Cloudflare Enterprise feature).low zooms, Amsterdam Centraal (http://localhost:8000/#view=5.59/52.132/8.208):

Popup always shows the localized name, and the local name if not equal:
