Convert Da-dk To Danish (denmark) Etc
How do I convert locale ids into display languages and countries in Java. For instance, I have a list of locales in this format: 'da-DK' and I want them all to show as 'Danish (Den
Solution 1:
Instead of using new Locale(sL)
, use Locale.forLanguageTag(sL)
.
Post a Comment for "Convert Da-dk To Danish (denmark) Etc"