You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to get system language in main process? I want i18n my app's menu, so I think I should do i18n work in main process, but I can't find how to detect system-wide used language. How can I do this?
@tengyifei This module doesn't help. When I change my system language to Chinese it still says 'en_US' in my electron app. Is it because its in electron's context?
Activity
tengyifei commentedon Jul 20, 2015
https://github.com/sindresorhus/os-locale
plrthink commentedon Jul 21, 2015
@tengyifei This module doesn't help. When I change my system language to Chinese it still says 'en_US' in my electron app. Is it because its in electron's context?
tengyifei commentedon Jul 21, 2015
What's your operating system? Can you try it in node?We should file an issue on os-localeplrthink commentedon Jul 22, 2015
@tengyifei Yeah, you're right, I would do that shortly.
zcbenz commentedon Sep 17, 2015
Closed with #2800.