wet-boew-styleguide icon indicating copy to clipboard operation
wet-boew-styleguide copied to clipboard

File Input button for forms are in English for both languages

Open Pierce-Manitowabi opened this issue 3 years ago • 2 comments
trafficstars

I am looking at the File Input option for Forms in the Web Experience Toolkit (WET) and I noticed that the pre-determined text for the button and beside the button says "Choose File" and 'No File Chosen'. This text is present in both English and French as well.

I would prefer it if the text were to be French on the French pages. Most classes we use tend to adjust depending on the Language. Screenshot 2022-03-02 111813

Thank you, Pierce Manitowabi

Pierce-Manitowabi avatar Mar 02 '22 17:03 Pierce-Manitowabi

File input is generated by the browser not wet-boew. You have to set your browser to your preferred language for it to change.

Only way around this is polyfills wet-boew does not apply polyfills when an element is browser supported.

I am just a volunteer on this GitHub project.

ghost avatar Mar 02 '22 21:03 ghost

I think there may be another way around it, but it's not pat of WET (yet). That would be to write a plugin like the jQuery File Upload. It would be a lot of work to do.

RobJohnston avatar Mar 02 '22 23:03 RobJohnston