mapbox / mapbox/mapbox-maps-flutter

localize labels appears to be broken

Open
#1,013 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
380
Forks
204
PR merge metrics
No merged PRs in 30d

Description

I am trying to display a map with localized labels, using the StyleManager function `localizeLabels` which according to documentation should do just do that

> Function to localize style labels.
> @param locale The locale to apply for localization @param layerIds The ids of layers that will localize on, default is null which means will localize all the feasible layers.

But testing with different common locales like below seems to change absolutely nothing
`
await mapboxMap?.style.localizeLabels('es', null);`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the StyleManager entry point `localizeLabels` and reproduce the issue using `await mapboxMap?.style.localizeLabels('es', null);` on a map with visible labels. Check the documented locale and layerIds behavior; done means applying a common locale visibly changes eligible map labels.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
localization, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.