From f6d1dc54db869bcbea4596fdeb6dd4621cf1b456 Mon Sep 17 00:00:00 2001 From: tom-win87 <76440079+tom-win87@users.noreply.github.com> Date: Mon, 6 May 2024 11:27:54 -0400 Subject: [PATCH 1/3] [HCD 516] Add default language precedence --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fe7f2fec1..a68ac49a1 100644 --- a/README.md +++ b/README.md @@ -488,7 +488,9 @@ consentManager.messageLanguage = SPMessageLanguageGerman; [consentManager loadMessage]; ``` -It's important to notice that if any of the components of the message doesn't have a translation for that language, the component will be rendered in english as a fallback. +It's important to notice that if any of the components of the message doesn't have a translation for that language, the component will be rendered in the default language configured in the message builder. + +> When the **Use Browser Default** toggle is enabled in the message builder, the user's browser language will always take precedence over the language set in the SDK as long as the end-user's browser language is supported in the message. If the user's browser language is not supported, the default language set in the message builder will be used. ## Loading Stage campaigns From 8da96319f68a11820069a957f274e46fd62d1a22 Mon Sep 17 00:00:00 2001 From: tom-win87 <76440079+tom-win87@users.noreply.github.com> Date: Tue, 7 May 2024 05:57:43 -0400 Subject: [PATCH 2/3] [HCD 516] Add default language precedence --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a68ac49a1..0ad758614 100644 --- a/README.md +++ b/README.md @@ -490,7 +490,7 @@ consentManager.messageLanguage = SPMessageLanguageGerman; It's important to notice that if any of the components of the message doesn't have a translation for that language, the component will be rendered in the default language configured in the message builder. -> When the **Use Browser Default** toggle is enabled in the message builder, the user's browser language will always take precedence over the language set in the SDK as long as the end-user's browser language is supported in the message. If the user's browser language is not supported, the default language set in the message builder will be used. +> When the **Use Browser Default** toggle is enabled in the message builder, Sourcepoint will ignore the language setting configured in the SDK and use the default language configured in the message builder. If the end-user's browser language is not supported by a translation in the message builder, the default language set in the message builder will be used instead. ## Loading Stage campaigns From 48a355eb3c21337a3dbcfc04ad8b020423785417 Mon Sep 17 00:00:00 2001 From: tom-win87 <76440079+tom-win87@users.noreply.github.com> Date: Thu, 9 May 2024 10:53:38 -0400 Subject: [PATCH 3/3] Add language precedence --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0ad758614..9309bad39 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ class ViewController: UIViewController { propertyName: try! SPPropertyName("mobile.multicampaign.demo"), campaigns: SPCampaigns( gdpr: SPCampaign(), - ccpa: SPCampaign(), + usnat: SPCampaign(), ios14: SPCampaign() ), delegate: self @@ -164,7 +164,7 @@ extension ViewController: SPDelegate { SPCampaigns *campaigns = [[SPCampaigns alloc] initWithGdpr: campaign - ccpa: campaign + usnat: campaign ios14: campaign environment: SPCampaignEnvPublic];