tauri-apps/wry

Is there a way to overwrite navigator.language?

Opened this issue · 0 comments

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!