{"id":19777485,"url":"https://github.com/ilib-js/ilib-localedata","last_synced_at":"2025-09-17T23:31:44.518Z","repository":{"id":37842352,"uuid":"467550474","full_name":"iLib-js/ilib-localedata","owner":"iLib-js","description":"Library of routines to load ilib locale data","archived":false,"fork":false,"pushed_at":"2024-11-08T16:41:27.000Z","size":1017,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-12T05:30:45.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iLib-js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-08T14:40:31.000Z","updated_at":"2022-04-14T14:14:46.000Z","dependencies_parsed_at":"2023-01-19T14:04:28.602Z","dependency_job_id":null,"html_url":"https://github.com/iLib-js/ilib-localedata","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-localedata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-localedata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-localedata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-localedata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iLib-js","download_url":"https://codeload.github.com/iLib-js/ilib-localedata/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233430256,"owners_count":18675058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T05:25:16.269Z","updated_at":"2025-09-17T23:31:38.559Z","avatar_url":"https://github.com/iLib-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003e :warning: **Deprecation Notice** :warning:\n\u003e This repository has been deprecated. Please use the corresponding package from the [iLib-js monorepo](https://github.com/iLib-js/ilib-mono) instead.\n\n# ilib-localedata\n\nA class that knows how to load and cache ilib locale data.\n\nThe LocaleData class relies on ilib-loader to be able to\nload files from where-ever they are stored. This may take the\nform of actual files in json form, or other methods, such as\nwebpacked lazy-load modules. The locale data class does not\nneed to know the details!\n\nThe LocaleData class converts a package name, a locale, and\na basename into the appropriate set of files name to attempt\nto load the requested data.\n\nFull JS Docs\n--------------------\n\nTo see a full explanation of the LocaleData class, please see\nthe [full API documentation](./docs/ilib-localedata.md).\n\nLogging\n--------------------\n\nUse the name \"ilib-localedata\" to configure a log4js appender in your app to\nsee logging output from this library.\n\n## License\n\nCopyright © 2022, JEDLSoft\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n## Release Notes\n\n### v1.5.0\n\n- added the `crossRoots` option to LocaleData.loadData which will\n  load all of the data in all of the roots (global and local) and\n  merge it all. Normal operation, which is still default, is to use\n  the first data found, no matter which root it is in, and ignore\n  the data in the other roots.\n\n### v1.4.1\n\n- fixed a bug where getLocaleData was returning the same instance for\n  all paths\n\n### v1.4.0\n\n- fixed a bug in data caching when the cache is cleared\n- fixed a problem where sync loading is requested but the loader doesn't\n  support sync loading. In this case, if the data is not in the cache, it\n  now throws an exception. If the data is in the cache, it now returns it\n  properly.\n- in async mode only, add the ability to load the assembled locale data\n  files automatically before any individual files in order to save time.\n  If there is an assembled locale data file, it loads one file and then\n  returns the data, instead of loading many files and merging the results\n  before returning the data.\n\n### v1.3.3\n### v1.3.2\n\n- This module is now a hybrid ESM/CommonJS package that works under node\n  or webpack\n- accidentally bumped the version to v1.3.3 before publishing the changes for\n  v1.3.2\n\n### v1.3.1\n\n- fixed a bug where data loaded from webpacked js files was not cached properly\n\n### v1.3.0\n\n- added support for loading files within webpack in a web page\n- implemented LocaleData.ensureLocale()\n- now depends on updated dependencies like ilib-loader which it now loads as es6 code\n    - allows webpack to see the webpack magic comments so that it knows how to bundle the locale data files\n- all unit tests now work on node and on browsers with the webpack loader, including the ensureLocale() tests\n- can now load data from json files as well as js files\n\n### v1.2.0\n\n- added support for the `mostSpecific` and `returnOne` flags to `loadData`.\n  When `mostSpecific` is true, only the most specific locale data is returned.\n  When `returnOne` is true, only the least specific locale data is returned.\n  When these are false, the locale data is merged with all of the parent locales\n  to create superset data.\n\n### v1.1.0\n\n- Add caching support so that data is only loaded once\n- Cache the data in the global scope so that it can be shared with\nall instances of LocaleData\n- update documentation\n\n### v1.0.0\n\n- Initial version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-localedata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filib-js%2Filib-localedata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-localedata/lists"}