wet-boew / wet-boew-styleguide

A style guide for the Web Experience Toolkit.
http://wet-boew.github.io/wet-boew-styleguide/index-en.html
35 stars 32 forks source link

File Input button for forms are in English for both languages #404

Open Pierce-Manitowabi opened 2 years ago

Pierce-Manitowabi commented 2 years ago

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

ghost commented 2 years ago

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.
RobJohnston commented 2 years ago

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.