Accessible non-english website: what input element attributes in native language?
I'm making an accessible Dutch language website. As a rule variable names in code are in English because not all programmers are Dutch natives. Do any of the attributes of input fields have to be in Dutch to be usable by a Dutch screenreader and compliant with WCAG?
Below is an example of a labelled radio-group:
<fieldset> <legend>Geef neerslag door:</legend> <div class="form-div" id="rainfall"> <input type="radio" id="no-rain" name="rainfall" value="none" /> <label for="no-rain">geen neerslag vandaag</label><br/> <input type="radio" id="catsndogs" name="rainfall" value="catsndogs"/> <label for="catsndogs">regen regen regen</label><br/> </div> </fieldset>
No, attribute values for things like IDs etc. can be anything you want them to be, even cryptic thinks like
As for attributes themselves, only English ones exist, you couldn't change
waarde="iets"as it wouldn't be valid. (I used Google translate so the Dutch may not make any sense but you get the idea!)
As long as every
aria-label, etc. has a value that is in Dutch, the site will be perfectly accessible.
Just remember to set your
langattribute on the HTML element!