Skip to content

Commit

Permalink
Merge pull request #1798 from Adyen/fix/malformed-locale
Browse files Browse the repository at this point in the history
Analytics - Fix malformed locale in analytics setup request
  • Loading branch information
OscarSpruit authored Oct 7, 2024
2 parents a1618b4 + b0784cd commit 5518ec8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal class DefaultAnalyticsSetupProvider(
version = AnalyticsPlatformParams.version,
channel = AnalyticsPlatformParams.channel,
platform = AnalyticsPlatformParams.platform,
locale = shopperLocale.toString(),
locale = shopperLocale.toLanguageTag(),
component = getComponentQueryParameter(source),
flavor = getFlavorQueryParameter(isCreatedByDropIn),
deviceBrand = Build.BRAND,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ internal class DefaultAnalyticsSetupProviderTest {
version = AnalyticsPlatformParams.version,
channel = AnalyticsPlatformParams.channel,
platform = AnalyticsPlatformParams.platform,
locale = Locale.US.toString(),
locale = Locale.US.toLanguageTag(),
component = "scheme",
flavor = "components",
deviceBrand = Build.BRAND,
Expand Down

0 comments on commit 5518ec8

Please sign in to comment.