
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
This repository provides the a portion of the JSON distribution of CLDR locale data for internationalization.
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.
This repository provides the a portion of the JSON distribution of CLDR locale data for internationalization.
Refer to the README at https://github.com/unicode-cldr/cldr-json for complete details.
FAQs
Basic CLDR supplemental data
The npm package cldr-core receives a total of 108,561 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.