Actually the Vendor List is loaded as it is, with its texts in English, aware of the consentLanguage attribute, that is set to 'es' by default.
This PR adds a decorator over the HttpVendorListRepository in order to load (if required) the external purposes translation related to the vendorListVersion and consentLanguage that we need to load in the Vendor List.
The getVendorList command is invoked as usual (with or without vendorListVersion)
The vendor list is expected to exist at the in-memory repo, or to be loaded of the remote JSON
When loading the remote JSON, if the consentLanguage is one of the available languages of the IAB's purpose translations, the remote purpose JSON is loaded for a specific version and language to fit the vendor list JSON vendorListVersion and the configured language
The purposes and features texts of the vendor list are replaced with the translations
The vendor list is returned with the language support
Review steps
Open any of the sites using the boros-cmp, cleaning the cookies
The CMP banner should be shown, and when opening the advertising partners, the purposes and features should be shown in the configured language (it's done at the site's side)
Description
Actually the Vendor List is loaded as it is, with its texts in English, aware of the consentLanguage attribute, that is set to 'es' by default.
This PR adds a decorator over the HttpVendorListRepository in order to load (if required) the external purposes translation related to the vendorListVersion and consentLanguage that we need to load in the Vendor List.
Solves ticket/s
Expected behavior
Review steps
Memetized description