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

Is there a way to overwrite navigator.language? #1231

Open
skwee357 opened this issue Apr 23, 2024 · 0 comments
Open

Is there a way to overwrite navigator.language? #1231

skwee357 opened this issue Apr 23, 2024 · 0 comments

Comments

@skwee357
Copy link

Hey there! Thanks a lot for the amazing work on Tauri.

In desktop applications, it is common to let users choose the application locale regardless of their OS settings. I like my OS to be set to en-US, but when working with applications for data entry (read: dates, monetary values, etc), I prefer to set en-NL if possible.

In webview, navigator.language is responsible for the behavior of some of Intl object methods as well as how <input type="date"/> is rendered.

I would like to know if it's possible to overwrite the navigator.language during application startup.

Thanks a lot!

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

No branches or pull requests

1 participant