Skip to content

Remove language code validation when localizing labels - #291

Merged
erictheise merged 1 commit into
stagingfrom
878-support-multilingual-labels
May 13, 2025
Merged

erictheise merged 1 commit into
stagingfrom
878-support-multilingual-labels

Conversation

@1ec5

@1ec5 1ec5 commented May 13, 2025

Copy link
Copy Markdown
Member

When localizing labels on the map, we no longer validate the language code (which comes from either account preferences or browser settings) but instead insert it directly into mapbox-gl-language’s list of supported languages. This ensures that any requested language will appear as long as it’s present in the tiles.

This addresses the feedback in #289 (review) to fix OpenHistoricalMap/issues#878.

@1ec5 1ec5 added the javascript Pull requests that update Javascript code label May 13, 2025
@erictheise
erictheise marked this pull request as ready for review May 13, 2025 16:46
@erictheise
erictheise merged commit 67fab2f into staging May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend changes to support multilingual labels

2 participants