forked from organicmaps/organicmaps
[iOS] Added currency to booking description
https://jira.mail.ru/browse/MAPSME-14486
This commit is contained in:
parent
b36246cb31
commit
6d75eabaee
1 changed files with 5 additions and 1 deletions
|
@ -285,7 +285,11 @@ static PlacePageRoadType convertRoadType(RoadWarningMarkType roadType) {
|
|||
return;
|
||||
}
|
||||
|
||||
std::string const currency = "RUB";
|
||||
NSString * currencyCode = [NSLocale.currentLocale currencyCode];
|
||||
if (currencyCode == nil || currencyCode.length == 0) {
|
||||
currencyCode = [[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] currencyCode];
|
||||
}
|
||||
std::string currency = [currencyCode UTF8String];
|
||||
|
||||
auto params = booking::BlockParams::MakeDefault();
|
||||
params.m_hotelId = m_hotelId;
|
||||
|
|
Loading…
Add table
Reference in a new issue