mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Support app.setLocale() or --lang switch #591
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lukasportal on GitHub (Nov 4, 2020).
I want to manually set the locale of the app, instead of using the default one.
From here, we can see that the electron team have added
app.setLocale()successfullyhttps://github.com/electron/electron/pull/26185
A quick workaround could be adding the switch
--lang=XYZon chromium launch.How possible would it be to add support for any of these 2? Or is there an existing workaround for this?
@danatcofo commented on GitHub (Jan 25, 2021):
You can use the HostHook feature to do this as well. It runs in the main thread and has access to the App module.
index.ts