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:
- Update the versions in
get-cldr-files.shto the desired version. execute the script in a temp location to download the files. - Replace the existing files in this repo in
cldr-downloadswith the new files. - Commit the changes to main.
- Add a git tag titled (for example): "36.0.0".
- Add a new release in Github titled (for example): "v36.0.0", referencing the new tag.
Then, in envoy-web:
- Run
npm install "github:appropos/cldr-data-archive#36.0.0", where 36.0.0 is the tag - Run
npm install cldr-data@<same-version>, to ensure compatibility, even though the code and data don't seem to be tightly coupled. - In
cldrdatadwnl.json, update the file names to match the new zip file names - Run an
npm run install-devand perform normal testing. - Complete branching/merging process as normal.