Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Language support #1108

Closed
Closed

Description

@tatsvc

How will language support work in the new SDK? Will this be the country's language by default, or can you set it to the language of the OS (this is what Apple Maps does, they have a toggle to always have it in English)? Just something to think about.

cc. @incanus @1ec5 @peterqliu

Activity

  1. added
    iOS
    on Mar 25, 2015
  2. added this to the iOS Beta 2 milestone on Mar 25, 2015
  3. friedbunny commented on Mar 28, 2015

    @friedbunny
    Contributor

    As another point of comparison, Google Maps (iOS app and SDK) defaults to device language with no exposed setting or API for switching. Labels in "foreign" places will display both your device language (where available) and the appropriate local name.

    screen shot 2015-03-28 at 11 04 16 am

    Meanwhile, Apple will try to draw labels in the device language and (almost always) fallback to local.

    screen shot 2015-03-28 at 11 11 56 am

    Google's data is far superior to Apple's, but both have outdated names for things like stadiums. It also appears that Google has done some machine translation of common place names. OSM has very, very few localized (non-English) names in Portland.

    More pressingly, setting a -native or -JS map to strictly Japanese results in no labels at all because Mapbox currently only supports English, French, Spanish, and German.

  4. incanus commented on Apr 6, 2015

    @incanus
    Contributor

    Proper support here, including RTL and complex text shaping is a bit out of scope, so moving off of b2 milestone for now.

  5. removed this from the iOS Beta 2 milestone on Apr 6, 2015
  6. added this to the milestone on Apr 13, 2015
  7. 1ec5 commented on Oct 17, 2015

    @1ec5
    Contributor

    To be clear, this ticket is about dynamically showing labels in whatever system language is being used at runtime. Currently that would require a large number of styles or a large number of classes in a single style (although we don't currently expose style classes to iOS SDK clients), to be toggled manually by client code. This is because label text is baked into the Mapbox Streets source, rather than decoupled into a separate source that can be parameterized by locale.

  8. jfirebaugh commented on Oct 18, 2015

    @jfirebaugh
    Contributor

    @1ec5 Not sure I understand your comment. Did you look at how the example works? It doesn't use multiple styles or style classes.

  9. jfirebaugh commented on Oct 18, 2015

    @jfirebaugh
    Contributor

    Oops, I thought this was a gl-js ticket. For gl-native, the upshot is that once we have a style API in native, we can do the same as the gl-js example -- changing the feature property used for the label.

  10. removed this from the milestone on Dec 22, 2015
  11. added
    MapKit parity
    Google Maps parity
    on Aug 22, 2016
  12. 1ec5 commented on Oct 26, 2016

    @1ec5
    Contributor

    #6819 (comment) would port the GL JS example to iosapp. If we were to truly have parity with MapKit, the SDK would have to automatically switch languages rather than forcing the developer to. However, that would require style-specific logic.

  13. 1ec5 commented on Nov 11, 2016

    @1ec5
    Contributor

    If we were to truly have parity with MapKit, the SDK would have to automatically switch languages rather than forcing the developer to. However, that would require style-specific logic.

    #7031 outlines a concrete approach to automatically localizing the map that I think would be feasible.

  14. added
    localization
    on Dec 7, 2016
  15. added
    archived
    on Nov 16, 2018
  16. stale commented on Nov 23, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

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

    Google Maps parityMapKit parityarchivedfeatureiOSlocalization

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions