The jQuery Globalization plugin enables you to easily parse
and format numbers, currencies, and dates for different cultures in JavaScript.
For example, you can use the Globalization plugin to display the proper
currency symbol for a culture:
You also can use the Globalization plugin to format dates so
that the day and month appear in the right order and the day and month names
are correctly translated:
Notice above how the Arabic year is displayed as 1431. This
is because the year has been converted to use the Arabic calendar.
Some cultural differences, such as different currency or
different month names, are obvious. Other cultural differences are surprising
and subtle. For example, in some cultures, the grouping of numbers is done
unevenly. In the "te-IN" culture (Telugu in India), groups have 3
digits and then 2 digits. The number 1000000 (one million) is written as
"10,00,000". Some cultures do not group numbers at all. All of these
subtle cultural differences are handled by the jQuery Globalization plugin
automatically.
Getting dates right can be especially tricky. Different
cultures have different calendars such as the Gregorian and UmAlQura calendars.
A single culture can even have multiple calendars. For example, the Japanese
culture uses both the Gregorian calendar and a Japanese calendar that has eras
named after Japanese emperors. The Globalization Plugin includes methods for
converting dates between all of these different calendars.