Releases: xvrh/common_locale_data
Releases · xvrh/common_locale_data
Release list
v2.3.0
- Add a high-level relative time ("timeago") formatter (cld.relativeTime): formats a DateTime/Duration as e.g. "3 minutes ago", "in 2 days", "yesterday" or "last week". It is calendar-aware (day/month/year compared by calendar field), can render weekday names ("last Tuesday"), exposes a low-level formatUnit(offset, unit) API and minUnit/maxUnit clamping, and supports long/short/narrow widths
- Add week conventions (cld.weekInfo): first day of the week, weekend days and minDaysInFirstWeek, with an isWeekend() helper
Minor fix to LICENSE and README.md files
Minor fix to LICENSE and README.md files. (LICENSE still not compatible with pub.dev license scanner: the pana package does not yet include the Unicode v3 license.)
Reduced package size by using inheritance for country specific locales
- Implemented inheritance for country specific locales to reduce source code and binary file sizes
Added support for LocaleId's, Added access members for fields and Significant refactoring
- Include support for LocaleId's and printing of all fields (currency, script, variants, subdivisions)
- Add support for currency and subdivisions CLDR data
- Improved compile times, resulting file size etc. by changing maps from
CanonicalizedMapto
const {}, etc. - NOTE: Lookups via the
operator []are still case-insensitive, however direct access to
thelanguages.languages,territories.territoriesetc. members become case sensitive. - Added non-countries to territories map
- Added static access members for languages, territories, scripts, variants and currencies.