Skip to content

How to get system language in main process? #2274

Closed

Description

@plrthink

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?

Activity

  1. plrthink commented on Jul 21, 2015

    @plrthink
    Author

    @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?

  2. tengyifei commented on Jul 21, 2015

    @tengyifei

    What's your operating system? Can you try it in node? We should file an issue on os-locale

  3. plrthink commented on Jul 22, 2015

    @plrthink
    Author

    @tengyifei Yeah, you're right, I would do that shortly.

  4. zcbenz commented on Sep 17, 2015

    @zcbenz
    Contributor

    Closed with #2800.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions