Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cldr-core

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cldr-core

  • 38.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is cldr-core?

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.

What are cldr-core's main functionalities?

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);

Other packages similar to cldr-core

FAQs

Package last updated on 27 Jan 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc