Magnolia 5.4 reached end of life on November 15, 2018. This branch is no longer supported, see End-of-life policy.
Locale is more often associated with the language parameter, which is usually defined by a two-, three- or four-letter language code, standardized under ISO 639. See the IANA Language Subtag Registry for a complete list of available language codes and language variants.
Nevertheless, the set of locale parameters is much broader than just the parameter for language. Any operation that requires a locale to perform its task is locale-sensitive. For example, even displaying a number may be a locale-sensitive operation: the number should be formatted according to the conventions of the user's native country, region, or culture.
The following is a list of the most common parameters that one should be aware of when implementing a locale-sensitive operation:
en_GB
vs American English: en_US
.14 March 2016
vs US: March 14, 2016
. For details see java.text.DateFormat .3.14
vs Czech: 3,14
, for details see java.text.NumberFormat .ANSI Letter
vs ISO A4
in many other nations.