The cookie acceptance form language is determined according to the browser which is fine but for screen readers a separate language definition should be added. Screen reader would then use this definition if the consent form uses a different language than the default language of the page is used - otherwise a screen reader will try to present the content using the default language of the page, not the language of the consent form.
In short, if the language of the page is Finnish and the user chooses the English version of the cookie acceptance form, there should be a separate language definition so that the screen reader understands the form is presented in English.
So I was wondering if it is possible to add a separate language definition to the code of the cookie acceptance form?
This comes from the WCAG guidelines, criterion 3.1.2: Understanding Success Criterion 3.1.2: Language of Parts | WAI | W3C