Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Use localized name property by default #6

Open

Description

@1ec5

When Mapbox GL Language is present, default to the name_* property that corresponds to the user’s current locale. We could keep the accessibleLabelProperty property around for data visualization use cases that aren’t so heavily focused on the Mapbox Streets source.

/cc @tristen @lukasmartinelli

Activity

  1. 1ec5 commented on Nov 17, 2017

    @1ec5
    Author

    The iOS implementation in mapbox/mapbox-gl-native#9950 additionally transliterates the name into Latin script using ICU if the user’s language is written in a Latin alphabet. This ensures that the labels remain comprehensible in a screen reader, since most screen readers are only capable of reading one language at a time, even if the user can comprehend multiple languages and multiple scripts.

    https://github.com/mapbox/mapbox-gl-native/blob/dcd7da14f6627a09a5840a3046b5708449962f69/platform/ios/src/MGLMapAccessibilityElement.mm#L52-L67

    However, I don’t believe there are any client-side facilities for transliteration on the Web platform. There may be server APIs for transliteration, but that might be out of scope for this plugin.

  2. added
    iOS SDK parity
    on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementiOS SDK parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions