59 Contributors: 5 Thursday, February 9, 2017
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial:
Roadmap: roadmap

Localization and Internationalization


Java comes with a powerful and flexible mechanism for localizing your applications, but it's also easy to misuse and wind up with a program that disregards or mangles the user's locale, and therefore how they expect your program to behave.

Your users will expect to see data localized to the formats they're used to, and attempting to support this manually is a fools errand. Here is just a small example of the different ways users expect to see content you might assume is "always" displayed a certain way:

DatesNumbersLocal CurrencyForeign CurrencyDistances
Mexico20/3/161.234,56$1,000.501,000.50 USD
UK20/3/161,234.56£1,000.50100 km
USA3/20/161,234.56$1,000.501,000.50 MXN60 mi

General Resources

Java Resources

Related Examples