Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
The cldr-core npm package provides the core data from the Unicode Common Locale Data Repository (CLDR). This data includes locale-specific information such as date and time formats, number formats, and language translations. It is used to internationalize applications by providing locale-specific data.
Date and Time Formatting
This feature allows you to access locale-specific date and time formats. The code sample demonstrates how to retrieve the first day of the week for different locales.
const cldrData = require('cldr-core');
const dateFormats = cldrData.supplemental.weekData.firstDay();
console.log(dateFormats);
Number Formatting
This feature provides locale-specific number formatting information. The code sample shows how to access number formatting data for the English locale.
const cldrData = require('cldr-core');
const numberFormats = cldrData.main['en/numbers'];
console.log(numberFormats);
Language Translations
This feature offers translations for various languages. The code sample demonstrates how to retrieve language names in English.
const cldrData = require('cldr-core');
const languageNames = cldrData.main['en/languages'];
console.log(languageNames);
Globalize is a library for internationalization and localization that leverages CLDR data. It provides a higher-level API compared to cldr-core, making it easier to format dates, numbers, and currencies, and to handle translations.
i18next is a powerful internationalization framework for JavaScript that supports translation, formatting, and pluralization. While it does not directly use CLDR data, it offers a comprehensive set of features for managing translations and locale-specific data.
Moment.js is a popular library for parsing, validating, manipulating, and formatting dates. It provides extensive support for internationalization through the moment-timezone and moment-locale packages, although it does not use CLDR data directly.
Basic CLDR supplemental data
This is part of the JSON distribution of CLDR locale data for internationalization
For full details, please see https://github.com/unicode-org/cldr-json
CLDR does not use Github's issue tracking system to track bugs. If you find an error in the data contained here, please file a new ticket at Unicode Jira
Copyright © 1991-2024 Unicode, Inc. Terms of Use
SPDX-License-Identifier: Unicode-3.0
A copy of the license is included as LICENSE.
FAQs
Basic CLDR supplemental data
The npm package cldr-core receives a total of 0 weekly downloads. As such, cldr-core popularity was classified as not popular.
We found that cldr-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.