Skip to content

Conversation

JulianGlueck
Copy link
Contributor

@JulianGlueck JulianGlueck commented Aug 16, 2025

This PR allows developers to obtain localisation information of the application and the system via the App facade.

It adds three new methods to the facade that are proxies for the Electron methods app.getLocale(), app.getLocaleCountryCode(), and app.getSystemLocale() (see details on the Electron documentation). This allows developers to improve the localisation of their application, e.g. by automatically setting or suggesting a language that matches the system language when a NativePHP application is first launched.

Laravel PR: NativePHP/laravel#681
Docs PR: NativePHP/nativephp.com#198

If there's anything you'd like me to tweak or improve in this PR, please let me know. 😊

@gwleuverink gwleuverink merged commit 065de21 into NativePHP:main Aug 18, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants