Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
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 104,814 weekly downloads. As such, cldr-core popularity was classified as 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 4 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.