Should I override controls so that it handle different locale’s or let the browser handle it?

Similar to A good solution how to localize and let user choose language on HTML page

but I am specifically wondering about localization of control elements such as required on input or date fields.

I would like to follow https://www.w3.org/International/questions/qa-lang-priorities and I already set <html lang="..."> to the appropriate language.

However, I don't think the popular browsers support that attribute correctly in that it will always use the OS locale to display the date field or the required error messages.

So my conclusion at the moment is to develop custom components for the controls so that they recognize the html lang attribute (which kind of defeats the purpose of using standard HTML controls)