org.apache.commons.lang3.LocaleUtils.toLocale("en_US") Locale.forLanguageTag("en-US") https://stackoverflow.com/questions/2522248/how-to-get-locale-from-its-string-representation-in-java How to get Locale from its String representation in Java? Is there a neat way of getting a Locale instance from its "programmatic name" as returned by Locale's toString() method? An obvious and ugly solution wou..