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

Use localized name property by default #6

Open
1ec5 opened this issue Nov 17, 2017 · 1 comment
Open

Use localized name property by default #6

1ec5 opened this issue Nov 17, 2017 · 1 comment
Labels
enhancement iOS SDK parity Needed for feature parity with the Mapbox Maps SDK for iOS

Comments

@1ec5
Copy link

1ec5 commented Nov 17, 2017

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

@1ec5
Copy link
Author

1ec5 commented Nov 17, 2017

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.

@1ec5 1ec5 added the iOS SDK parity Needed for feature parity with the Mapbox Maps SDK for iOS label Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement iOS SDK parity Needed for feature parity with the Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

1 participant