Menu

Locale Support

Edwin H

This page documents what the locale support is for each type of functionality in each release.

Note that for many types of locale data, the data is defined for the language and is therefore shared between all the locales that use that language. This shared data may not be correct for all locales that use that language, but in many cases, it will at least be close.

For example, date formatting for the Gregorian calendar is defined for the English language, and any locale that uses English can format dates with it. For some locales, such as en-US, the generic English date formats are overridden to conform to US date formatting conventions.

In the lists below, when the data is defined only for the language, the locale will be given as only the language code. When the data is defined specifically for a locale, it will be given as the locale code with the language and region together.

There is also a definition for generic locale data shared amongst all locales, so you should be able to get some results for any locale. However, this generic data is based on the most common settings around the world, and is often not correct for any particular locale.

iLib Version 1.0

  • Date/Time/Duration/Range Formatting: de en en-US es fr it
  • Number/percentage/currency formatting: de en fr zh
  • Localized strings: de en en-CA en-GB es fr it pt

Locale info

  • Default currency: all locales!
  • Default time zone: all locales!
  • Default calendar: ar (all other locales default to "gregorian")
  • 12/24-hour clock preference: af-ZA el en-AU en-BZ en-CA en-JM en-NZ en-PH en-TT en-US en-ZA en-ZW es-MX es-PH es-US fr-CA fr ko mi-NZ nl-ZA nv-US sq sw ta-PH tl-PH zh zh-US (for any locale not listed here, the default is "24 hour clock")
  • Units: cy-GB en-GB en-US es-US ks-GB nv-US zh-US (all other locales default to "metric")
  • First day of week: de es fr it (all other locales default to Sunday)
  • Paper sizes: cy-GB de en-CA en-GB en-US es es-US fr-CA fr it ks-GB nv-US zh-US

The following functionality is not dependent on locales

Currency Info: all currencies defined by the ISO 4217 standard
Time Zone Info: all time zones defined by the IANA time zone DB
Calendars: Gregorian, Julian, Islamic civil
CType: all Unicode characters in the Basic Multilingual Plane (BMP)

iLib Version 1.1

  • Date/Time/Duration/Range Formatting: af de en es fr id it ja ko pt ru tr vi zh
  • Number/percentage/currency formatting: almost all locales
  • Localized strings: af de en es fr id it ja ko pt ru tr vi zh

Locale info

  • Default currency: all locales!
  • Default time zone: all locales!
  • Default calendar: ar he (all other locales default to "gregorian")
  • 12/24-hour clock preference: af-ZA el en-AU en-BZ en-CA en-JM en-NZ en-PH en-TT en-US en-ZA en-ZW es-MX es-PH es-US fr-CA fr ko mi-NZ nl-ZA nv-US sq sw ta-PH tl-PH zh zh-US (for any locale not listed here, the default is "24 hour clock")
  • Units: cy-GB en-GB en-US es-US ks-GB nv-US zh-US (all other locales default to "metric")
  • First day of week: de es fr it (all other locales default to Sunday)
  • Paper sizes: cy de en es fr it ks nv zh-US

The following functionality is not dependent on locales

Currency Info: all currencies defined by the ISO 4217 standard
Time Zone Info: all time zones defined by the IANA time zone DB
Calendars: Gregorian, Julian, Islamic civil, Hebrew
CType: all Unicode characters in the Basic Multilingual Plane (BMP)

iLib Version 1.2

Added date/time format and translations for Danish, Finnish, Norwegian, and Swedish.

  • Date/Time/Duration/Range Formatting: af da de en es fr id it ja ko no pt ru sv tr vi zh
  • Number/percentage/currency formatting: almost all locales
  • Localized strings: af da de en es fr id it ja ko no pt ru sv tr vi zh

Locale info

  • Default currency: all locales!
  • Default time zone: all locales!
  • Default calendar: ar he (all other locales default to "gregorian")
  • 12/24-hour clock preference: af-ZA el en-AU en-BZ en-CA en-JM en-NZ en-PH en-TT en-US en-ZA en-ZW es-MX es-PH es-US fr-CA fr ko mi-NZ nl-ZA nv-US sq sw ta-PH tl-PH zh zh-US (for any locale not listed here, the default is "24 hour clock")
  • Units: cy-GB en-GB en-US es-US ks-GB nv-US zh-US (all other locales default to "metric")
  • First day of week: da de es fr it no sv (all other locales default to Sunday)
  • Paper sizes: cy da de en es fr it ks no nv sv zh-US

The following functionality is not dependent on locales

Currency Info: all currencies defined by the ISO 4217 standard
Time Zone Info: all time zones defined by the IANA time zone DB
Calendars: Gregorian, Julian, Islamic civil, Hebrew
CType: all Unicode characters in the Basic Multilingual Plane (BMP)


Related

Wiki: iLib - an internationalization library written in Javascript

MongoDB Logo MongoDB