Skip to content

[Bug]: localizeLabels doesn't apply without translations #4190

@alahwa

Description

@alahwa

Mapbox Navigation SDK version

2.6.0

Steps to reproduce

Implement localization according to the documentation:

navigationMapView.mapView.mapboxMap.onNext(.styleLoaded, handler: { [weak self] _ in
    self?.navigationMapView?.localizeLabels()
})

Expected behavior

Localization should apply according to system language preferences.

Actual behavior

Localization does not properly apply unless the current system language is also configured in Xcode with a stub localization file. This isn't a feasible solution for our use case, as we have a translation pipeline with several supported languages, and introducing a localization file for every language Mapbox supports isn't possible.

Instead, is there an option to enable language support broadly based on the system language preferences? Why does our app need to be localized for a particular language in order for Mapbox to support it?

Is this a one-time issue or a repeatable issue?

repeatable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions