Skip to content

Conversation

@hiddewie
Copy link
Owner

@hiddewie hiddewie commented Nov 22, 2025

For #409

For the station layers that contain names, provide a lang query parameter.

More ideal would be the Accept-Language header that every browser sends, but the cache is not varied across that header (Cloudflare Enterprise feature).

image image

low zooms, Amsterdam Centraal (http://localhost:8000/#view=5.59/52.132/8.208):
image

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

@hiddewie hiddewie marked this pull request as ready for review November 29, 2025 19:20
@hiddewie
Copy link
Owner Author

…to language

# Conflicts:
#	proxy/js/styles.mjs
@hiddewie hiddewie merged commit 2fcbdfe into master Nov 30, 2025
12 checks passed
@hiddewie hiddewie deleted the language branch November 30, 2025 11:23
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants