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.

Localize labels into Japanese, Korean #12283

Closed

Description

@1ec5

The list of supported languages to automatically localize labels into should be updated to include Japanese and Korean, which are now available via the name_ja and name_ko fields in Mapbox Streets v7:

/**
An array of locale codes with dedicated name fields in the Mapbox Streets
source.
https://www.mapbox.com/vector-tiles/mapbox-streets-v7/#overview
*/
static NSArray * const MGLMapboxStreetsLanguages = @[
@"ar", @"de", @"en", @"es", @"fr", @"pt", @"ru", @"zh", @"zh-Hans",
];
/**
Like `MGLMapboxStreetsLanguages`, but deanglicized for use with
`+[NSBundle preferredLocalizationsFromArray:forPreferences:]`.
*/
static NSArray * const MGLMapboxStreetsAlternativeLanguages = @[
@"mul", @"ar", @"de", @"es", @"fr", @"pt", @"ru", @"zh", @"zh-Hans",
];

/ref mapbox/vector-tiles#54 mapbox/mapbox-gl-language#21 mapbox/mapbox-plugins-android#566
/cc @friedbunny

Activity

  1. added
    iOS
    macOS
    localization
    on Jul 3, 2018
  2. 1ec5 commented on Jul 3, 2018

    @1ec5
    ContributorAuthor

    #11867 tracks more substantial changes to support Streets source v8. This issue should happen beforehand; it’s just a two-line change.

  3. added this to the ios-v4.2.0 milestone on Jul 3, 2018
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

    iOSlocalizationmacOSruntime styling

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions