Java Locale.getDefault()
always returns en-US on windows even though the system locale is set to a different language (through Region and Language control panel).
Running a script such as systeminfo | findstr /C:\"System Locale\
inside Java Runtime.exec() takes lot of time.
Is there a quicker way to detect system locale on (java) application startup? Running the above cmd once and writing to a property file for subsequent reads maybe one solution. But what if the system locale is changed and system restarted? What is a more reliable way to find system locale in jdk ?