Skip to content

Commit 1dc8f1c

Browse files
authored
Merge pull request #363 from Countly/content_lang
feat: content language support
2 parents 22c056f + 31a3e37 commit 1dc8f1c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
## 24.7.8
2+
* Added support for localization of content blocks.
3+
24
* Mitigated an issue where visibility could have been wrongly assigned if a view was closed while going to background. (Experimental!)
35
* Mitigated an issue where the user provided URLSessionConfiguration was not applied to direct requests
46
* Mitigated an issue where a concurrent modification error could have happen when starting multiple stopped views

CountlyContentBuilderInternal.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ - (NSURLRequest *)fetchContentsRequest
137137

138138
queryString = [CountlyConnectionManager.sharedInstance appendChecksum:queryString];
139139

140+
NSArray *components = [CountlyDeviceInfo.locale componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"_-"]];
141+
142+
queryString = [queryString stringByAppendingFormat:@"&%@=%@",
143+
@"la", components.firstObject];
144+
140145
NSString* URLString = [NSString stringWithFormat:@"%@%@?%@",
141146
CountlyConnectionManager.sharedInstance.host,
142147
kCountlyEndpointContent,

0 commit comments

Comments
 (0)