[ios, macos] Autolocalize into Japanese, Korean
Added Japanese and Korean to the list of languages for which the Mapbox Streets source has dedicated name fields.
This commit is contained in:
committed by
Minh Nguyễn
parent
bfd6fb7b52
commit
71a72d269a
@@ -82,7 +82,8 @@
|
||||
https://www.mapbox.com/vector-tiles/mapbox-streets-v7/#overview
|
||||
*/
|
||||
static NSArray * const MGLMapboxStreetsLanguages = @[
|
||||
@"ar", @"de", @"en", @"es", @"fr", @"pt", @"ru", @"zh", @"zh-Hans",
|
||||
@"ar", @"de", @"en", @"es", @"fr", @"ja", @"ko", @"pt", @"ru", @"zh",
|
||||
@"zh-Hans",
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -90,7 +91,8 @@ static NSArray * const MGLMapboxStreetsLanguages = @[
|
||||
`+[NSBundle preferredLocalizationsFromArray:forPreferences:]`.
|
||||
*/
|
||||
static NSArray * const MGLMapboxStreetsAlternativeLanguages = @[
|
||||
@"mul", @"ar", @"de", @"es", @"fr", @"pt", @"ru", @"zh", @"zh-Hans",
|
||||
@"mul", @"ar", @"de", @"es", @"fr", @"ja", @"ko", @"pt", @"ru", @"zh",
|
||||
@"zh-Hans",
|
||||
];
|
||||
|
||||
+ (NSSet<NSString *> *)mapboxStreetsLanguages {
|
||||
|
||||
@@ -5,6 +5,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT
|
||||
# master
|
||||
|
||||
* Added `-[MGLMapView camera:fittingShape:edgePadding:]` and `-[MGLMapView camera:fittingCoordinateBounds:edgePadding:]` allowing you specify the pitch and direction for the calculated camera. ([#12213](https://github.com/mapbox/mapbox-gl-native/pull/12213))
|
||||
* `-[MGLStyle localizeLabelsIntoLocale:]` and `-[NSExpression mgl_expressionLocalizedIntoLocale:]` can automatically localize labels into Japanese or Korean based on the system’s language settings. ([#12286](https://github.com/mapbox/mapbox-gl-native/pull/12286))
|
||||
|
||||
## 4.2.0
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
# master
|
||||
|
||||
* Added `-[MGLMapView camera:fittingShape:edgePadding:]` and `-[MGLMapView camera:fittingCoordinateBounds:edgePadding:]` allowing you specify the pitch and direction for the calculated camera. ([#12213](https://github.com/mapbox/mapbox-gl-native/pull/12213))
|
||||
* `-[MGLStyle localizeLabelsIntoLocale:]` and `-[NSExpression mgl_expressionLocalizedIntoLocale:]` can automatically localize labels into Japanese or Korean based on the system’s language settings. ([#12286](https://github.com/mapbox/mapbox-gl-native/pull/12286))
|
||||
|
||||
## 0.7.2 - June 22, 2018
|
||||
|
||||
|
||||
Reference in New Issue
Block a user