What is the correct way of knowing operating system language (locale) from java code?
I have tried
Locale.getDefault() System.getProperties(\"user.l
To be precise, you can try following code:
public Locale getLocale() { if (this.locale == null) { this.locale = new Locale(System.getProperty("user.language"), System.getProperty("user.country")); } return this.locale; }