Skip to content

Localization plugin #2

@1ec5

Description

@1ec5

How about a plugin that uses runtime styling to automatically localize map labels into the user’s preferred language? There’s already a robust implementation of this feature in Objective-C targeting the macOS SDK that’s entirely compatible with the iOS SDK:

https://github.com/mapbox/mapbox-gl-native/blob/cc1ea759a681cadcfd06fd7bdda79ca6deb38c62/platform/macos/app/MapDocument.m#L346-L393
https://github.com/mapbox/mapbox-gl-native/blob/cc1ea759a681cadcfd06fd7bdda79ca6deb38c62/platform/macos/app/MGLVectorSource+MBXAdditions.m

mapbox/mapbox-gl-native#7031 tracks folding that implementation into the iOS and macOS SDKs proper. In the meantime, the plugin could be useful for developers whose applications ship in multiple markets on the App Store.

mapbox/mapbox-plugins-android#36 is the equivalent on Android.

/cc @ericrwolfe @lukasmartinelli

Metadata

Metadata

Assignees

No one assigned

    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