Skip to content

storage for zip files usually obtained from github.com/unicode-cldr/

Notifications You must be signed in to change notification settings

appropos/cldr-data-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cldr-data-archive

storage for zip files usually obtained from github.com/unicode-cldr/

The 'cldr-data' package normally downloads data from a list of sites found in node_modules/cldr-data/urls.json. These packages live in archives at locations such as https://github.com/unicode-cldr/cldr-core/archive/32.0.0.zip.

To ensure consistant access to these files, this repo contains a manually downloaded copy of all of those exact zip files found in the core set, and can be updated when we choose.

This repo is to be included in the package.json of envoy-web along with a reference to the file cldrdatadwnl.json, which overwrites the download URLs to the local file system where these zips are stored. The path to cldrdatadwnl.json in package.json is relative to the helper-library node_modules/cldr-data-downloader.

To update the CDLR data, use the following steps:

  1. Update the versions in get-cldr-files.sh to the desired version. execute the script in a temp location to download the files.
  2. Replace the existing files in this repo in cldr-downloads with the new files.
  3. Commit the changes to main.
  4. Add a git tag titled (for example): "36.0.0".
  5. Add a new release in Github titled (for example): "v36.0.0", referencing the new tag.

Then, in envoy-web:

  1. Run npm install "github:appropos/cldr-data-archive#36.0.0", where 36.0.0 is the tag
  2. Run npm install cldr-data@<same-version>, to ensure compatibility, even though the code and data don't seem to be tightly coupled.
  3. In cldrdatadwnl.json, update the file names to match the new zip file names
  4. Run an npm run install-dev and perform normal testing.
  5. Complete branching/merging process as normal.

About

storage for zip files usually obtained from github.com/unicode-cldr/

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages