npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@box/cldr-data

v45.0.0

Published

CLDR Data that box-ui-elements and other Box code needs

Downloads

24,427

Readme

Box CLDR Data

Usage

This is a package that contains the subset of CLDR data that is needed for box-ui-elements and possibly other React apps within Box.

To use data for a locale:

import loadLocaleData from '@box/cldr-data';
or
var loadLocaleData = require('@box/cldr-data'); // from commonjs

then:

const germanData = loadLocaleData("de-DE");

If you are using webpack and do not want to get all of the locale data for all locales at once built into your package, you should directly require only the locales that you need:

import germanData from '@box/cldr-data/locale-data/de-DE';  // for typescript

or

const germanData = require("@box/cldr-data/locale-data/de-DE.js");  // for commonjs

Change Log

v45.0.0

  • updated to CLDR v45.0.0

v44.0.1

  • fixed a problem where the typescript types were not being exported properly from the package

v44.0.0

  • updated to CLDR v44.0.0
    • package.json set to point at v44.0.1 of cldr-* packages because the package makers screwed up some stuff, so they made a quick update for npm. However, they assure us that the CLDR version is still v44.0.0
    • now points at a specific version of the cldr-* packages instead of a carat version so that each version of @box/cldr-data tracks a specific version of the CLDR data

v41.0.0

  • updated package version to the latest version of CLDR packages (version 41).

v34.8.0

  • updated to ship both the ES6 and the transpiled versions of this package.

v34.7.1

  • removed a bogus dependency on the nodejs path package that shouldn't have been there!

v34.7.0

  • Added data for names of the days of the week

v34.6.1

  • Fixed a bug where if you used loadLocaleData(), the types file was in the wrong spot in the npm package, so they didn't load.

v34.6.0

  • Added week data from CLDR for each locale.
  • Returns the first day of the week, and which days the weekend starts and ends
  • Values are:
    • 0 = Sunday
    • 1 = Monday
    • 2 = Tuesday
    • 3 = Wednesday
    • 4 = Thursday
    • 5 = Friday
    • 6 = Saturday

v34.5.0

  • Returns the localizedName, abbreviationStandard, and abbreviationDaylight fields separately now in case clients wish to format the zone differently

v34.4.1

  • return the language name array sorted by the translation of those language names

v34.4.0

  • initial version that uses CLDR version 34.0.0

Copyright and License

Copyright 2020-present Box, Inc. All Rights Reserved.

Licensed under the Box Software License Agreement v.20170516. You may not use this file except in compliance with the License. You may obtain a copy of the License at

https://developer.box.com/docs/box-sdk-license

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.