Skip to content

Commit

Permalink
Feat: Submit consent language to consent collector (fixes #387)
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Feb 4, 2025
1 parent d48f1dd commit 74735d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/consentCollector.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('consentCollector', () => {
revision: 333,
source: 'demo.example',
days_of_acceptation: 33,
language: 'N/A',
language: 'en',
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/consentCollector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function buildPayload(userPreferences: UserPreferences, cookie: CookieValue): Ob
rejected_categories: userPreferences.rejectedCategories,
revision: cookie.revision,
source: cookieData.serviceName,
language: 'N/A', // TODO: change to cookie.languageCode, see https://github.com/orestbida/cookieconsent/pull/761
language: cookie.languageCode,
days_of_acceptation: calculateDaysOfAcceptation(cookie),
},
},
Expand Down

0 comments on commit 74735d7

Please sign in to comment.