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

feat: add app.getPreferredSystemLanguages() API #36290

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Nov 9, 2022

Backport of #36035

See that PR for details.

Notes: Added an app.getPreferredSystemLanguages() API to return the user's system languages.

* feat: add app.getSystemLanguage() API

* Change the API to getPreferredSystemLanguages

* Fix test

* Clarify docs and add Linux impl

* Remove USE_GLIB

* Don't add C to list

* Remove examples since there's a lot of edge cases

* Fix lint

* Add examples

* Fix compile error

* Apply PR feedback

* Update the example

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
@trop trop bot added 21-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Nov 9, 2022
Copy link
Member

@VerteDinde VerteDinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by @electron/wg-releases

@jkleinsc jkleinsc merged commit d8a1298 into 21-x-y Nov 9, 2022
@jkleinsc jkleinsc deleted the trop/21-x-y-bp-feat-add-app-getpreferredsystemlanguages-api-1668009063885 branch November 9, 2022 22:21
@release-clerk
Copy link

release-clerk bot commented Nov 9, 2022

Release Notes Persisted

Added an app.getPreferredSystemLanguages() API to return the user's system languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
21-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants