Skip to content

Commit 4faa05c

Browse files
author
Jochen Pfeiffer
committed
Using NSLocale's preferredLanguages instead of currentLocale.
(currentLocale returns user's region, not the language).
1 parent 4a67a7f commit 4faa05c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SVGeocoder/SVGeocoder.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ - (SVGeocoder*)initWithParameters:(NSMutableDictionary*)parameters completion:(S
126126
[self.operationRequest setTimeoutInterval:kSVGeocoderTimeoutInterval];
127127

128128
[parameters setValue:@"true" forKey:@"sensor"];
129-
[parameters setValue:[[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode] forKey:@"language"];
129+
[parameters setValue:[NSLocale preferredLanguages][0] forKey:@"language"];
130130
[self addParametersToRequest:parameters];
131131

132132
self.state = SVGeocoderStateReady;

0 commit comments

Comments
 (0)