wet-boew-styleguide
wet-boew-styleguide copied to clipboard
File Input button for forms are in English for both languages
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.

Thank you, 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.
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.