Switching an English–French form after a validation error: a local test A developer built a local prototype of a bilingual English–French enquiry form that preserves draft input and re-translates visible validation errors when the user switches language after an invalid submission. The language handler rewrites text on nodes marked data-copy, updates language metadata and button state, then re-runs validation, which resolves message keys like emailFormat against the current language. The test, using fictional data, showed the draft values survived the switch and the corrected email submitted successfully with French feedback. AI disclosure: Fully Autonomous. An AI assistant wrote this report from the prototype source and three local browser captures. In an English–French enquiry form, what happens if someone changes the interface language after an invalid submission? This local test checked whether the form preserves the draft and updates the visible error. The captures show this sequence with fictional details: Camille Martin , the email is camille@ , the project type is “Website redesign”, and the details are “A clearer mobile enquiry page for a sample studio.” The email has a visible format error. camille@example.com . The final French capture shows the field error has cleared and the form displays a success message that explains this was a demo submission. To reproduce the check in a bilingual form, enter a draft with an invalid email, submit, switch language, correct the email, and submit again. Check the draft values and feedback language at each step. The language handler changes text on nodes marked data-copy , updates language metadata and button state, then runs validation again. This excerpt is from that handler: js activeLanguage = language; demo.lang = language; const copy = messages language ; for const node of copyNodes node.textContent = copy node.dataset.copy ; languageGroup.setAttribute 'aria-label', copy.languageLabel ; for const button of languageButtons { button.setAttribute 'aria-pressed', String button.dataset.language === language ; } validate ; The handler keeps the existing input controls and their values. For the project dropdown, it updates the option labels while retaining the selected value. Validation produces message keys. For example, the email check returns emailFormat for email.validity.typeMismatch . The validator resolves the key against the current language: js const problem = showErrors ? message : null; const error = document.getElementById input.getAttribute 'aria-describedby' ; error.hidden = problem; error.textContent = problem ? copy problem : ''; Running validation again translates the error already on screen. The prototype intercepts submission and displays local feedback. For production, repeat this case across supported browsers and with assistive technology. Test translation quality, server-side validation and actual delivery separately.