From dc0895d93c7099bdd15ff22f29d8ecb3898252a1 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Mon, 25 Nov 2019 11:20:14 -0500 Subject: [PATCH] Use correct locale identifier when iOS user has custom calendar set --- vendor/brave-ios/Ads/BATBraveAds.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/brave-ios/Ads/BATBraveAds.mm b/vendor/brave-ios/Ads/BATBraveAds.mm index 33a8f7a85f38..e4fa077ac126 100644 --- a/vendor/brave-ios/Ads/BATBraveAds.mm +++ b/vendor/brave-ios/Ads/BATBraveAds.mm @@ -107,7 +107,7 @@ + (BOOL)isNewlySupportedLocale:(NSString *)locale + (BOOL)isCurrentLocaleSupported { - return [self isSupportedLocale:[NSLocale currentLocale].localeIdentifier]; + return [self isSupportedLocale:[[NSLocale preferredLanguages] firstObject]]; } BATClassAdsBridge(BOOL, isDebug, setDebug, _is_debug)