Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Pierce-Manitowabi opened this issue Mar 2, 2022 · 2 comments
Open

Comments

@Pierce-Manitowabi
Copy link

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
Copy link

ghost commented Mar 2, 2022

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants